Scroll Bar
A standard scroll bar or slider control. The scroll bar has a minimum, maximum and current value that is updated when the user drags it. The scroll bar sends continuous messages as it is dragged.
xpWidgetClass_ScrollBar
define
#define xpWidgetClass_ScrollBar 5
Scroll Bar Type Values
enum
This defines how the scroll bar looks.
| Name | Value | Description |
|---|---|---|
| xpScrollBarTypeScrollBar | 0 | A standard X-Plane scroll bar (with arrows on the ends). |
| xpScrollBarTypeSlider | 1 | A slider, no arrows. |
Scroll Bar Properties
enum
| Name | Value | Description |
|---|---|---|
| xpProperty_ScrollBarSliderPosition | 1500 | The current position of the thumb (in between the min and max, inclusive) |
| xpProperty_ScrollBarMin | 1501 | The value the scroll bar has when the thumb is in the lowest position. |
| xpProperty_ScrollBarMax | 1502 | The value the scroll bar has when the thumb is in the highest position. |
| xpProperty_ScrollBarPageAmount | 1503 | How many units to move the scroll bar when clicking next to the thumb. The scroll bar always moves one unit when the arrows are clicked. |
| xpProperty_ScrollBarType | 1504 | The type of scrollbar from the enums above. |
| xpProperty_ScrollBarSlop | 1505 | Used internally. |
Scroll Bar Messages
enum
| Name | Value | Description |
|---|---|---|
| xpMsg_ScrollBarSliderPositionChanged | 1500 | The scroll bar sends this message when the slider position changes. It sends the message up the call chain; param1 is the scroll bar widget ID. |