ADDOBJECT "HScrollbar", name, xpos, ypos, width, height
ADDOBJECT " VScrollBar ", name, xpos, ypos, width, height
Description
Displays a scrollbar. The Change event is fired when the Right, Left, Up or Down arrows are tapped or when the slider is moved. SmallChange must be set to at least 1.
Properties Supported (see "Properties")
Enabled, Height, HWnd, LargeChange, Left, Max, Min, Name, ParentHWnd, SmallChange, TabStop, Tag, Top, Timer, Value, Visible, Width, WindowLong
Methods Supported (see "Methods")
Hide, Move, SetFocus, Show
Events Supported (see "Events")
Click, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, Timer
Example
REM VScrollBar Example
ADDOBJECT "VScrollBar", "Button", _
120, 10, 20, 100
Output
![]()
Example
REM HScrollbar Example
ADDOBJECT " HScrollbar ", "Button", _
10, 120, 100, 20
SUB Button_Change
PRINT "Button clicked"
KillFocus
END SUB
Output
![]()
Related Items
ADDOBJECT, Events, Methods, Properties