Download MetaTrader 5

Resize Chart Window event

To add comments, please log in or register
Frika
37
Frika  
Hello,

I want to place a button with mt4gui lib on the right side. And with this lib is not possible to choose the "CORNER _RIGHT_UPPER".
So I have to recalculate the Chart size, but I don´t wanna do this every tick but if the chart window is resized only.
I want to know if there is a trigger that noticed when my chart window is resized.

Thank you
honest_knave
Moderator
2318
honest_knave  
Frika:
Hello,

I want to place a button with mt4gui lib on the right side. And with this lib is not possible to choose the "CORNER _RIGHT_UPPER".
So I have to recalculate the Chart size, but I don´t wanna do this every tick but if the chart window is resized only.
I want to know if there is a trigger that noticed when my chart window is resized.

Thank you


void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam)
  {
   if(id==CHARTEVENT_CHART_CHANGE)
Frika
37
Frika  
honest_knave:


void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam)
  {
   if(id==CHARTEVENT_CHART_CHANGE)
Thank you, that´s it what I was searching for
To add comments, please log in or register