The scroll bar is used when a document has a larger content than may be made visible. The range is the total size of the document, the page is the part of the document which is visible. The size of the scrollbar thumb is adjusted to give feedback of the relative sizes of each. The scroll bar may be manipulated by the left mouse (normal scrolling), right mouse (vernier or fine-scrolling), or middle mouse (same as the left mouse only the scroll position can hop to the place where the click is made). Finally, if the mouse sports a wheel, the scroll bar can be manipulated by means of the mouse wheel as well. Holding down the Control-key during wheel motion will cause the scrolling to go faster than normal. While moving the scroll bar, a message of type SEL_CHANGED will be sent to the target, and the message data will reflect the current position of type FXint. At the end of the interaction, the scroll bar will send a message of type SEL_COMMAND to notify the target of the final position.
Construct scroll bar.
Argument | Type | Default | Description |
p | FXComposite | ||
tgt | FXObject | None | |
sel | Int | 0 | |
opts | Int | SCROLLBAR_VERTICAL | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 |
Change current scroll position.
Argument | Type | Default | Description |
p | Int | ||
notifyTgt | Bool | False |