Discussion of article "How to create a graphical panel of any complexity level" - page 11

 
Vladimir Karputov:

It is necessary that all elements of the panel are redrawn - this way they will occupy the "top" position.

I see, thanks! Does the CAppDialog class have a built-in method of redrawing all elements? If not, would it be correct to implement it in a successor class:

void CControlsDialog::Redraw(void)
  {
   this.Visible(false);
   this.Visible(true);
  }

It works in practice, I checked it.

 
Janis Ozols:

I see, thanks! Does the CAppDialog class have a built-in method of redrawing all elements? If not, would it be correct to implement it in a successor class:

It works in practice, I checked it.

There may be other variants - but it should work, because the hidden panel should be redrawn again - so all its elements will be on top.

 
Janis Ozols:

I see, thanks! Does the CAppDialog class have a built-in method of redrawing all elements? If not, would it be correct to implement it in a successor class:

It works in practice, I checked it.

As far as I remember, the Run() method redraws the chart.
 
Vasiliy Pushkaryov:
As far as I remember, the Run() method redraws the chart.

Yes, it redraws the chart. Thanks, I'll try it!

bool CAppDialog::Run(void)
  {
//--- redraw chart for dialogue invalidate
   m_chart.Redraw();
//--- here we begin to assign IDs to controls
   if(Id(m_subwin*CONTROLS_MAXIMUM_ID)>CONTROLS_MAXIMUM_ID)
     {
      Print("CAppDialog: too many objects");
      return(false);
     }
//--- succeed
   return(true);
  }

UPD: I tried it. Alas, it didn't work. Apparently, this method redraws the chart itself, but not the panel.
 

Hello Everyone

First, thank you for Vladimir Karputov to share this article.

I am new to design my panel for a beginner. 

I want to confirm that is it possible to undock this panel like chart.

If yes, where I can find the method? thank you.

Vladimir Karputov
Vladimir Karputov
  • 2021.09.01
  • www.mql5.com
Trader's profile
 
Quan tum # :

***

I want to confirm that is it possible to undock this panel like chart.

If yes, where I can find the method? thank you.

I do not understand.

 
Vladimir Karputov #:

I do not understand.

In MT5 we can click the right button in mouse on the chart and we will see the "docked". (in attachment)

If we click it, the chart window will outside the platform independent. That is mean undocked.

So, I want to confirm that is the panel can also do this independent from the chart? Thank you.

Files:
 
Quan tum # :

In MT5 we can click the right button in mouse on the chart and we will see the "docked". (in attachment)

If we click it, the chart window will outside the platform independent. That is mean undocked.

So, I want to confirm that is the panel can also do this independent from the chart? Thank you.

You yourself answered your own question: You yourself choose the menu FOR THE CURRENT CHART WINDOW. What does the panel have to do with it?

 
Vladimir Karputov #:

You yourself answered your own question: You yourself choose the menu FOR THE CURRENT CHART WINDOW. What does the panel have to do with it?

Sorry, maybe I let you misunderstand.
I mean can it possible to undocked the panel out side the chart.
 
Quan tum # :
Sorry, maybe I let you misunderstand.
I mean can it possible to undocked the panel out side the chart.

It is forbidden. The panel is linked to the chart.