I have an input parameter in my EA 'startMinimized' - if the user sets it to true the dialog should be started minimized. So I do it this way in my code:
ExtDialog = new CPanelDialog;
if (startMinimized) {
ExtDialog.Minimized(true);
}
if (!ExtDialog.Create(0, " " + _Symbol, 0, 0, 0, 232, 540))
return (INIT_FAILED);
//--- starting the applicationif (!ExtDialog.Run())
return (INIT_FAILED);
ExtDialog.OnInit();
It works - the dialog panel is started minimized but it shows the minize icon (Turn.bmp) and not the restore icon (Restore.bmp) which should be there. This way the user has to click that icon 2x to be able to maximize it. see gif animation attached
(After it was maximized with 2 clicks instead of 1 it works as expected with one click to mini-/maximize)
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.
Hi,
I have an input parameter in my EA 'startMinimized' - if the user sets it to true the dialog should be started minimized.
So I do it this way in my code:
It works - the dialog panel is started minimized but it shows the minize icon (Turn.bmp) and not the restore icon (Restore.bmp) which should be there.
This way the user has to click that icon 2x to be able to maximize it. see gif animation attached
(After it was maximized with 2 clicks instead of 1 it works as expected with one click to mini-/maximize)