getting width and height of a tiled window

 

Hi,

with the function ChartGetInteger function and the property GET_WIDTH_IN_PIXELS I find out the width e.g. respectivly the height of the chart. Unfortunatly that doesnt work when I tile the window. Let's say I have 2 chart windows tiled in different size and want to know width and height in pixel for both of them. For example to place a label in the lower right corner, always and it shouldn't matter if the the chart window is maximized or tiled.

Thanks for help community!
 
Dan:

with the function ChartGetInteger function and the property GET_WIDTH_IN_PIXELS I find out the width e.g. respectivly the height of the chart. Unfortunatly that doesnt work when I tile the window. Let's say I have 2 chart windows tiled in different size and want to know width and height in pixel for both of them. For example to place a label in the lower right corner, always and it shouldn't matter if the the chart window is maximized or tiled.

Thanks for help community!

I've been using this all the while:

   int XSize = int(ChartGetInteger(ChartID(),CHART_WIDTH_IN_PIXELS));
   int YSize = int(ChartGetInteger(ChartID(),CHART_HEIGHT_IN_PIXELS));
 
Seng Joo Thio:

I've been using this all the while:

That gives you always the same values for X and Y when you have the chartwindow maximized and tiled or made it less than maximized. I'm looking for the exact sizes for the tiled or custom sized chartwindow. That means the values must me smaller when I tiled the chartwindow than if its maximized.
 
Dan:
That gives you always the same values for X and Y when you have the chartwindow maximized and tiled or made it less than maximized. I'm looking for the exact sizes for the tiled or custom sized chartwindow. That means the values must me smaller when I tiled the chartwindow than if its maximized.

I don't know what you mean, but using the two lines I can put the word CENTER at the center of my charts, whatever size I drag them to.


 
Seng Joo Thio: I've been using this all the while:
          Chart Price Max/Min - MQL4 programming forum
 
William Roeder:
          Chart Price Max/Min - MQL4 programming forum

Thanks, I'll check it out!

 
William Roeder:
          Chart Price Max/Min - MQL4 programming forum
Thanks, but labels don't use the price/time axes. 
Reason: