Click or drag to resize

HorizontalScrollBar Class

X#
Create a horizontal scroll bar that is independent of its owner window.
Inheritance Hierarchy
Object
  VObject
    Control
      ScrollBar
        HorizontalScrollBar

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS HorizontalScrollBar INHERIT ScrollBar
Request Example View Source

The HorizontalScrollBar type exposes the following members.

Constructors
  NameDescription
Public methodHorizontalScrollBar
Construct a horizontal scroll bar.
Top
Remarks
There are two types of horizontal scroll bars in X#: regular (created with CLASS HorizontalScrollBar) and window (created with the AppWindow:EnableHorizontalScroll() method). Both types have an owner window and can be manipulated using Window:HorizontalScroll(). However, a window horizontal scroll bar differs in that it automatically appears aligned along the bottom of its owner window's canvas area and also resizes itself according to the size of its owner window. A horizontal scroll bar allows the user to update a short integer numeric value by either moving the thumb position, clicking on the button at either end of the scroll bar to change the number by the designated ScrollBar:UnitSize, or by clicking in the interior of the scroll bar to change the number by the designated ScrollBar:BlockSize. The minimum and maximum allowable numeric values are indicated by the Min and Max values for the Range object associated with the scroll bar. The ScrollBar:Value access indicates the currently selected numeric value. A scroll bar may be bound to a numeric field in a server.
Tip Tip
By default, Window:HorizontalScroll() updates the thumb position (the marker on the scroll bar that can be dragged up or down, left or right) in the scroll bar. If desired, you can change this by using your own implementation of this handler.
In Windows, horizontal scroll bars are equivalent to a scroll bar with the SBS_HORZ style. They are normally specified in the resource entity as follows:
X#
1RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 120
2STYLE WS_POPUP | WS_DLGFRAME
3BEGIN
4CONTROL "", IDS_RED,  "scrollbar", SBS_HORZ, 10, 16, 100, 20
5CONTROL "", IDS_BLUE, "scrollbar", SBS_HORZ, 10, 46, 100, 20
6CONTROL "", IDS_GREEN, "scrollbar", SBS_HORZ, 10, 76, 100, 20
7END
See Also

Reference