Download MetaTrader 5

CButton

CButton is a class of a simple control based on "Button" chart object.

Description

CButton class is intended for creation of simple buttons.

Declaration

   class CButton : public CWndObj

Title

   #include <Controls\Button.mqh>

Class Methods by Groups

Create

 

Create

Creates control

State

 

Pressed

Gets/sets the "Pressed" property

Locking

Gets/sets the "Locking" property

Properties change event handlers

 

OnSetText

"SetText" event handler

OnSetColor

"SetColor" event handler

OnSetColorBackground

"SetColorBackground" event handler

OnSetColorBorder

"SetColorBorder" event handler

OnSetFont

"SetFont" event handler

OnSetFontSize

"SetFontSize" event handler

Internal event handlers

 

OnCreate

"Create" internal event handler

OnShow

"Show" internal event handler

OnHide

"Hide" internal event handler

OnMove

"Move" internal event handler

OnResize

"Resize" internal event handler

OnMouseDown

"MouseDown" internal event handler

OnOnMouseUp

"MouseUp" internal event handler

 


Updated: 2016.06.24