DesktopScrollbar

From Xojo Documentation

Class (inherits from DesktopUIControl)


New in 2021r3

The scrollbar control.

Events
ValueChanged


Properties
AllowFocus MaximumValue Value
AllowLiveScrolling MinimumValue
LineStep PageStep


Methods

Notes

A DesktopScrollbar can be either horizontal or vertical. To set its orientation programatically, set the height to be greater than the width for a vertical scrollbar. Set the width to be greater than the height for a horizontal scrollbar.

Examples

Changing the maximum value of a DesktopScrollbar at runtime:

Scrollbar1.MaximumValue = 200

Setting the text of a DesktopLabel, control to the value of the DesktopScrollbar when the user scrolls:

Sub ValueChanged()
Label1.Value = Scrollbar1.Value.ToString
End Sub

See also the discussion of scrolling DesktopListBox controls horizontally using a DesktopScrollbar control.

See Also

DesktopSlider control; DesktopUIControl class.