//+------------------------------------------------------------------+//| Makes the group of controls visible |//+------------------------------------------------------------------+bool CWndContainer::Show(void)
{
//--- loop by elements of groupint total=m_controls.Total();
for(int i=0;i<total;i++)
{
CWnd *control=Control(i);
//--- check of pointerif(control==NULL)
continue;
control.Show();
}
//--- call of the method of the parent classreturn(CWnd::Show());
}
What if I have a Button object and it doesn't have a .Show() method.
Karputov Vladimir: Why CWndContainer? What should we get in the end?
A panel with Buy - Sell buttons and some more notifications about the state of the Expert Advisor. But it should be dragged on the screen with the mouse, but the button is not dragged.
Evgeny Potapov: A panel with Buy - Sell buttons and some more notifications about the state of the Expert Advisor. But it should be dragged on the screen with the mouse, but the button is not dragged.
After creating an object (button, list, text field, etc.) this object should be added to the panel (Add method). Then, when dragging the panel, all objects will be moved together with the panel.
Karputov Vladimir: After creating an object (button, list, text field, etc.) this object should be added to the panel (Add method). Then when dragging the panel, all objects will be moved together with the panel.
Karputov Vladimir: After creating an object (button, list, text field, etc.) this object should be added to the panel (Add method). Then, when dragging the panel, all objects will be moved together with the panel.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Well, that's what I did, nothing works. The panel is still white as before.
The compiler says Macro redifinition, i.e. like overdivided....
Use my first advice, just replace the colours in the original file and recompile the EA.
To remember how I redefined the colours in my panel, I need to dig around, but I don't have time right now.
For History:
Forum on trading, automated trading systems and testing trading strategies
Why does the panel move away when updating Expert Advisor settings?
Andrey Khatimlianskii, 2016.03.10 13:17
Approximately like this:
Can you give me a simple example of how CWndContainer should be twisted to display at least some square on the chat screen using .Show()?
I have tried everything, for example, like this, but no error, no image, no sign of .Show() working
Can you give me a simple example of how CWndContainer should be twisted to display at least some square on the chat screen using .Show()?
I have tried everything, for example, like this, but no error, no image, no sign of .Show() working.
I don't understand the logic here:
What if I have a Button object and it doesn't have a .Show() method.
Can't it be contained in a container?
Why CWndContainer? What should we get in the end?
A panel with Buy - Sell buttons and some more notifications about the state of the Expert Advisor. But it should be dragged on the screen with the mouse, but the button is not dragged.
After creating an object (button, list, text field, etc.) this object should be added to the panel (Add method). Then when dragging the panel, all objects will be moved together with the panel.
Like this?
After creating an object (button, list, text field, etc.) this object should be added to the panel (Add method). Then, when dragging the panel, all objects will be moved together with the panel.
Or is this not "adding to the panel"?
So a container is not a panel?
Or is it not "adding to a panel"?
So a container is not a panel?
Using the PanelDialog2.mqh file from the article as an example:
This file creates the elements for a dialogue panel. The sign of the panel is the CDialog class.
The CDialog class is a class of the Dialog combo control.
Description
The CDialog class is designed to visually combine a group of functionally related heterogeneous elements.