An HScrollBar is a horizontal bar with arrows at either end and a scroll box. Typically, you use an HScrollBar control as a slider control employed by users to specify a value on a continuous scale, or as a way to display graphically information to the user.
Usage note
The HScrollBar control is not the horizontal scroll bar that
displays to allow the user to scroll through information in a control.
HScrollBar property |
Datatype |
Description |
---|---|---|
String |
A description of the control and/or its purpose for use by accessibility tools such as readers for visually impaired users. |
|
String |
A label that briefly describes the control, such as the text in a button or the name of a menu item. |
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the control is. |
|
Boolean |
Specifies whether PowerBuilder moves the control to the top of the front-to-back order. Values are:
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
Boolean |
Specifies whether PowerBuilder puts the control automatically into Drag mode. Values are:
|
|
String |
Specifies the name of the stock icon or the file containing the icon you want to display when the user drags the control (the ICO file). The default icon is a box the size of the control. When the user drags the control, the icon displays when the control is over an area in which the control can be dropped (a valid drop area). When the control is over an area that is not a valid drop area, the No-Drop icon displays. |
|
Integer |
Specifies the height of the control, in PowerBuilder units. |
|
Integer |
Specifies the value of the Position property when the scroll box is at the right edge of the control. |
|
Integer |
Specifies the value of the Position property when the scroll box is at the left edge of the control. |
|
String |
Specifies the name of the stock pointer or file containing the pointer used for the control. |
|
Integer |
Specifies a value between MinPosition and MaxPosition specifying the position of the scroll box. |
|
Boolean |
Specifies whether PowerBuilder uses the standard height for the control. Values are:
|
|
Integer |
Specifies the tab value of the control within the window (0 means the user cannot tab to the control). |
|
String |
Specifies the tag value assigned to the control. |
|
Boolean |
Specifies whether the control is visible. Values are:
|
|
Integer |
Specifies the width of the control, in PowerBuilder units. |
|
Integer |
Specifies the X position (the distance from the left edge of the window), in PowerBuilder units. |
|
Integer |
Specifies the Y position (the distance from the top of the window), in PowerBuilder units. |
HScrollBar event |
Occurs |
---|---|
Immediately before the Open event occurs in the window |
|
Immediately after the Close event occurs in the window |
|
When a dragged control is dropped on the control |
|
When a dragged control enters the control |
|
When a dragged control leaves the control |
|
When a dragged control is within the control |
|
Just before the control receives focus (before it is selected and becomes active) |
|
When the user presses the F1 key or drags the context help button (question mark) from the title bar to a menu item or control |
|
When the left arrow of the control is clicked |
|
When the right arrow of the control is clicked |
|
When the control loses focus (becomes inactive) |
|
When the scroll box is moved (use the Position property to determine the new location) |
|
When a Windows message occurs that is not a PowerBuilder event |
|
When the open space to the left of the scroll box is clicked |
|
When the open space to the right of the scroll box is clicked |
|
When the right mouse button is pressed on the control |
HScrollBar function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the control |
|
Integer |
Starts or ends the dragging of the control |
|
Integer |
Creates a reference to a context-specific instance of the specified service |
|
PowerObject |
Returns a reference to the name of the parent object |
|
Integer |
Makes the control invisible |
|
Integer |
Moves the control to a specified location |
|
Integer |
Returns the distance of the pointer from the left edge of the control |
|
Integer |
Returns the distance of the pointer from the top of the control |
|
Boolean |
Adds an event to the end of the message queue for control |
|
Integer |
Prints the control |
|
Integer |
Changes the size of the control |
|
Integer |
Sets the focus to the control |
|
Integer |
Specifies the position of the control in the front-to-back order of the window |
|
Integer |
Controls automatic redrawing of the control after each change in its properties |
|
Integer |
Makes the control visible |
|
Integer |
Triggers a specified event in the control and executes the script for the event |
|
Object |
Returns the type of the control |