Skip to content

CAppDialog

CAppDialog

CAppDialog is a class of Application Dialog complex control (with dependent controls).

Description

CAppDialog class is intended to combine the controls with different functions in the group inside the MQL5 program.

Declaration

class CAppDialog : public CDialog

Title

#include <Controls\Dialog.mqh>

Inheritance hierarchy

CObject

CWnd

CWndContainer

CDialog

CAppDialog

Class Methods by Groups

Create and destroy
CreateCreates control
DestroyDestroys control
Events processing
OnEventEvent handler of all chart events
Run
RunRuns control
Chart events processing
ChartEventEvent handler of all chart events
Settings
MinimizedSets a value indicating whether the control is minimized
Save/Load
IniFileSaveSaves the control state to file
IniFileLoadLoads the control state from file
IniFileNameSets the file name for loading/saving the control state
IniFileExtSets the file extension for loading/saving the control state
Initialization
CreateCommonCommon initialization method
CreateExpertInitialization method for working in Expert Advisors
CreateIndicatorInitialization method for working in indicators
Dependent controls
CreateButtonMinMaxCreates dependent controls (minimize/maximize buttons)
Dependent controls event handlers
OnClickButtonClose“ClickButtonClose” internal event handler (virtual)
OnClickButtonMinMax“ClickButtonMinMax” internal event handler (virtual)
External events
OnAnotherApplicationCloseEvent handler of external events (virtual)
Methods
ReboundSets new coordinates of the control using CRect class coordinates
MinimizeShows the control in the minimized state
MaximizeShows the control in the maximized (restored) state
CreateInstanceIdCreates a unique Id for the names of the control objects
ProgramNameGets the name of MQL5 program, at which the control is used
SubwinOffGet the Y offset of the control subwindow

Methods inherited from class CWnd

: Name, ControlsTotal, Control, Rect, Left, Left, Top, Top, Right, Right, Bottom, Bottom, Width, Width, Height, Height, Size, Size, Size, Contains, Contains, Alignment, Align, Id, IsEnabled, IsVisible, Visible, IsActive, Activate, Deactivate, StateFlags, StateFlags, StateFlagsSet, StateFlagsReset, PropFlags, PropFlags, PropFlagsSet, PropFlagsReset, MouseX, MouseX, MouseY, MouseY, MouseFlags, MouseFlags, MouseFocusKill, BringToTop

Methods inherited from class CWndContainer

: OnMouseEvent, ControlsTotal, Control, ControlFind, MouseFocusKill, Add, Add, Delete, Delete, Move, Move, Shift, Id, Enable, Disable, Show, Hide

Methods inherited from class CDialog

: Caption, Caption, Add, Add

Last updated on