Click or drag to resize

ScrollBar Class (Typed)

X#
Provide the base class from which all X# scroll bars are subclassed.
Inheritance Hierarchy
Object
  VObject
    Control
      ScrollBar
        HorizontalScrollBar
        Slider
        VerticalScrollBar
        WindowScrollBar

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

The ScrollBar type exposes the following members.

Constructors
  NameDescription
Public methodScrollBar
Construct a scroll bar.
Top
Properties
  NameDescription
Public propertyBlockSize
A numeric value representing the block size of the scroll bar
Public propertyRange
A range object representing the minimum and maximum values currently in use for the thumb of a scroll bar.
Public propertyTextValue
A string representing the thumb position of the scroll bar.
(Overrides TextValue.)
Public propertyThumbPosition
A numeric value (short integer) representing the current thumb position of the scroll bar.
Public propertyUnitSize
A numeric value representing the unit size currently associated with the scroll bar.
Public propertyCode exampleValue
The value held in the control, in whatever data type the control holds.
(Overrides Value.)
Top
Functions
  NameDescription
Public methodSetInfo
Set all scrollbar properties with one method call.
Public methodSetThumbPosition
Set the thumb position of the scrollbar
Top
Remarks
Scroll bars have a marker, called a thumb, which can be dragged up and down (or left and right) within a range of values. The thumb can be dragged to different positions on the scroll bar, or it can step up or down in blocks or units. GUI scroll bars automatically maintain block and unit operations. When a block or unit operation takes place, a ScrollEvent is generated with both the actual thumb position and the position the thumb would assume if the scroll bar is updated. The block and unit amounts are added or subtracted from the current position according to the scroll type that occurs. By default, a scroll bar has a range of (0,99), a unit size of 1, a block size of 10, and an initial thumb position of 0.
See Also