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.
Events
The following messages are sent by FXScrollBar to its target:
| SEL_LEFTBUTTONPRESS: | sent when the left mouse button goes down; the message data is an FXEvent instance.
|
| SEL_LEFTBUTTONRELEASE: | sent when the left mouse button goes up; the message data is an FXEvent instance.
|
| SEL_MIDDLEBUTTONPRESS: | sent when the middle mouse button goes down; the message data is an FXEvent instance.
|
| SEL_MIDDLEBUTTONRELEASE: | sent when the middle mouse button goes up; the message data is an FXEvent instance.
|
| SEL_RIGHTBUTTONPRESS: | sent when the right mouse button goes down; the message data is an FXEvent instance.
|
| SEL_RIGHTBUTTONRELEASE: | sent when the right mouse button goes up; the message data is an FXEvent instance.
|
| SEL_CHANGED: | sent continuously while the scroll bar is moving; the message data is an
integer indicating the current position of the scroll bar.
|
| SEL_COMMAND: | sent at the end of a scrolling operation, to signal that the scrolling is
complete. The message data is an integer indicating the new position of the
scroll bar.
|
Scrollbar styles
| SCROLLBAR_HORIZONTAL: | Horizontally oriented
|
| SCROLLBAR_VERTICAL: | Vertically oriented (the default)
|
Message identifiers
| ID_TIMEWHEEL: | x
|
| ID_AUTOINC_LINE: | x
|
| ID_AUTODEC_LINE: | x
|
| ID_AUTOINC_PAGE: | x
|
| ID_AUTODEC_PAGE: | x
|
| ID_AUTOINC_PIX: | x
|
| ID_AUTODEC_PIX: | x
|