Minimize and Maximize not working properly

 

Hi

 I am using CAppDialog class to create a trading panel with buttons and  labels.

 

using this code for the chart events :- 

tradingPanel.ChartEvent(id, lparam, dparam, sparam);  

 

Code of one the button creation:-

 

bool Testanel::CreateButtonLong(void)

{

//--- coordinates

   int x1 = INDENT_LEFT;

   int y1 = INDENT_TOP + ( 3 * EDIT_HEIGHT ) + ( 3 * CONTROLS_GAP_Y );

   int x2 = x1 + BUTTON_WIDTH;

   int y2 = y1 + BUTTON_HEIGHT;

//--- create

  


   if( !button_long.Create( m_chart_id, LongButtonId, m_subwin, x1, y1 ,x2, y2 ))

      return(false);

   if( !button_long.ColorBackground( clrSpringGreen ))  

      return(false);

   if( !button_long.Text( "Long" ))

      return(false);   

   if( !Add( button_long ))

      return(false);

   button_long.Alignment( WND_ALIGN_RIGHT, 0, 0, INDENT_RIGHT, 0 );

//--- succeed

   return(true);

 

Minimize is working fine but when i Maximize the panel, some of the Buttons just disappear and some of them changes there position.

Labels are in there correct place.

Please help with the issue. 

 

Hi  ankitag2010

I am also interested to know the fix for this issue as I have experienced it myself. Have you got around it?

Cheers. 

Reason: