Wrong Cpanel Size

To add comments, please log in or register
JP2019
9
JP2019  

I have try to build up the Cpanel by copying the example that written at the bottom of this page.

By clicking the resize button in the dialog, I have a situation as the attached image instead .

Did I missed anything? 

MQL5のドキュメンテーション: 標準ライブラリ / パネルとダイアログ / CPanel
MQL5のドキュメンテーション: 標準ライブラリ / パネルとダイアログ / CPanel
  • www.mql5.com
//|                                                ControlsPanel.mq5 | //|                                             https://www.mql5.com | //| defines                                                          | //| Class CControlsDialog                                            | //| Constructor                                    ...
Files:
Anthony Garot
2952
Anthony Garot  
JP2019:

I have try to build up the Cpanel by copying the example that written at the bottom of this page.

By clicking the resize button in the dialog, I have a situation as the attached image instead .

Did I missed anything? 

I can confirm that I get the same behavior when I run the code.

You can trace the behavior of Minimize() and Maximize() to CPanel::OnResize(), and there you can see it changing the values, but I haven't traced this further.

//+------------------------------------------------------------------+
//| Resize the chart object                                          |
//+------------------------------------------------------------------+
bool CPanel::OnResize(void)
  {
   PrintFormat("%s(): m_rect.Width [%d] m_rect.Height [%d]", __FUNCTION__, m_rect.Width(), m_rect.Height());
//--- resize the chart object
   return(m_rectangle.X_Size(m_rect.Width()) && m_rectangle.Y_Size(m_rect.Height()));
  }

You can manually see how the values in the object change (Object List -> List All -> #####MyWhiteBorder):

Initial:

After Minimize:

After Maximize:


To add comments, please log in or register