Panel hidden

 

Hello, i have a panel that is suppose to display like this:

b


When i minimize the chart and move the panel, some of its content gets hidden. 

b


// Create Trade Panel
   if(!TradePanel.Create(0,"tt",0,X_START,Y_START,X_SIZE,Y_SIZE))
     {
      return (INIT_FAILED);
     }

So i have been trying to solve that problem but no results. Any suggestion i will appreciate.

 
Langat Naftali:

Hello, i have a panel that is suppose to display like this:



When i minimize the chart and move the panel, some of its content gets hidden. 



So i have been trying to solve that problem but no results. Any suggestion i will appreciate.

The issue is not in the line you are showing

If you are using the classes provided by metaquotes, you are going to rewrite some of the classes to solve that (and not just for that case only)

 
Mladen Rakic:

The issue is not in the line you are showing

If you are using the classes provided by metaquotes, you are going to rewrite some of the classes to solve that (and not just for that case only)


Thank you. Yes i am using the provided classes.

 
Langat Naftali:

Thank you. Yes i am using the provided classes.

Hello all,


same happens with the original 'SimplePanel' from Indicators\Examples.

As soon as you reduce the height of the chartwindow -> 0 you'lll never get it back correctly displaying anymore.

It seems to happen when you're using a fixed height in a subwindow (what the SimplePanel does) with ChartSetInteger(chart_ID,CHART_HEIGHT_IN_PIXELS,sub_window,value).

In MT5 this is working perfectly - in MT4 you get the described behavior


Thanks clyx

Reason: