MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

NonLagDot Indicator
NonLagDot
Author: GODZILLA
Screenshot
USDCHF, M5
Real
Subscribe to signal
Hysteresis revers
100.10%, 200 100.10 USD
Quest UploadChartQuest UploadChart Try product
Quest UploadChart
Author: codeidea
How to Add New UI Languages to the MetaTrader 5 Platform How to Add New UI Languages to the MetaTrader 5 Platform

CWnd

CWnd is a base class for all controls, included in the MQL5 Standard Library.

Description

CWnd class is the implementation of the base control class.

Declaration

   class CWnd : public CObject

Title

   #include <Controls\Wnd.mqh>

Class Methods

Create and destroy

 

Create

Creates control

Destroy

Destroys control

Chart event handlers

 

OnEvent

Event handler of all chart events

OnMouseEvent

Event handler for the CHARTEVENT_MOUSE_MOVE event

Name

 

Name

Gets control name

Access to container

 

ControlsTotal

Gets the number of controls in the container

Control

Gets the control by index

ControlFind

Gets the control by ID

Geometry

 

Rect

Gets the pointer to the CRect class object

Left

Gets/Sets the X-coordinate of the upper-left corner

Top

Gets/Sets the Y-coordinate of the upper-left corner

Right

Gets/Sets the X-coordinate of the lower-right corner

Bottom

Gets/Sets the Y-coordinate of the lower-right corner

Width

Gets/Sets the width

Height

Gets/Sets the height

Move

Sets new coordinates of the control

Shift

Performs the relative shift of the control coordinates

Resize

Sets new width/height of the control

Contains

Checks if the point/control is inside the control area

Align

 

Alignment

Sets alignment properties of the control

Align

Performs control alignment

Identification

 

Id

Gets/Sets the control ID

State

 

IsEnabled

Gets a value indicating whether the control is enabled

Enable

Sets a value indicating whether the control is enabled

Disable

Disables the control

IsVisible

Checks the visibility flag

Visible

Sets the visibility flag

Show

Shows the control

Hide

Hides the control

IsActive

Checks the control activity

Activate

Activates the control

Deactivate

Deactivates the control

State flags

 

StateFlags

Gets/Sets the control state flags

StateFlagsSet

Sets the control state flags

StateFlagsReset

Resets the control state flags

Properties flags

 

PropFlags

Gets/Sets the control properties flags

PropFlagsSet

Sets the control properties flags

PropFlagsReset

Resets the control properties flags

Mouse operations

 

MouseX

Gets/Saves the mouse X coordinate

MouseY

Gets/Saves the mouse Y coordinate

MouseFlags

Gets/Saves the mouse buttons state

MouseFocusKill

Kills mouse focus

Internal event handlers

 

OnCreate

"Create" event handler

OnDestroy

"Destroy" event handler

OnMove

"Move" event handler

OnResize

"Resize" event handler

OnEnable

"Enable" event handler

OnDisable

"Disable" event handler

OnShow

"Show" event handler

OnHide

"Hide" event handler

OnActivate

"Activate" event handler

OnDeactivate

"Deactivate" event handler

OnClick

"Click" event handler

OnChange

"Change" event handler

Mouse event handlers

 

OnMouseDown

"MouseDown" event handler

OnMouseUp

"MouseUp" event handler

Drag event handlers

 

OnDragStart

"DragStart" event handler

OnDragProcess

"DragProcess" event handler

OnDragEnd

"DragEnd" event handler

Drag object

 

DragObjectCreate

Creates drag object

DragObjectDestroy

Destroys drag object

 


Updated: 2012.04.06