Hi everyone, I'm new to using Panels, although I have made one program.
For my next project, I wanted to make a dialog box, however, I'm running into an issue: clicking on the client area is causing CDialog's OnButtonClose() event to fire off, thus, hiding the visibility of the dialog box.
What I've done:
Create a new Indicator
Create a new class ("LearnDialog") based off of CDialog (I used CDialog because I didn't need the MinMax button of CAppDIalog)
Added standard code in the indicator for running a panel
Override CDialog's Create method (although no custom code has been added to it)
Code:
#include "\\Lab\\LearnDialog.mqh"//--- Global Variable
LearnDialog MyMessage;
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 everyone, I'm new to using Panels, although I have made one program.
For my next project, I wanted to make a dialog box, however, I'm running into an issue: clicking on the client area is causing CDialog's OnButtonClose() event to fire off, thus, hiding the visibility of the dialog box.What I've done:
Code: