Skip to content

CScroll

CScroll

CScroll is a base class for creation of scroll bars.

Description

CScroll is a complex control (with dependent controls), it contains the base functionality for creation of scroll bars. The base class itself is not used as a separate control, two of its heirs (CScrollV and CScrollH classes) are used as controls.

Declaration

class CScroll : public CWndContainer

Title

#include <Controls\Scrolls.mqh>

Inheritance hierarchy

CObject

CWnd

CWndContainer

CScroll

Direct descendants

: CScrollH, CScrollV

Class Methods by Groups

Create
CreateCreates control
Chart object event handlers
OnEventEvent handler of all chart events
Properties
MinPosGets/sets the minimal position
MaxPosGets/sets the maximal position
CurrPosGets/sets the current position
Dependent controls creation
CreateBackCreates background button
CreateIncCreates increment button of the scroll bar
CreateDecCreates decrement button of the scroll bar
CreateThumbCreates thumb button (can be dragged) of the scroll bar
Dependent controls event handlers
OnClickIncEvent handler used for handling increment button events
OnClickDecEvent handler used for handling decrement button events
Internal event handlers
OnShow“Create” internal event handler
OnHide“Hide” internal event handler
OnChangePos“ChangePosition” internal event handler
Object drag handlers
OnThumbDragStart“ThumbDragStart” event handler
OnThumbDragProcess“ThumbDragProcess” event handler
OnThumbDragEnd“ThumbDragEnd” event handler
Position
CalcPosGets scroll bar position by coordinate

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

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

Last updated on