class PtScrollbar PtBasic { increment; // long (Pt_ARG_INCREMENT) maximum; // integer (Pt_ARG_MAXIMUM) min_slider_size; // integer (Pt_ARG_MIN_SLIDER_SIZE) minimum; // integer (Pt_ARG_MINIMUM) orientation; // flags (Pt_ARG_ORIENTATION) page_increment; // integer (Pt_ARG_PAGE_INCREMENT) scroll_position; // integer (Pt_ARG_SCROLL_POSITION) scrollbar_flags; // flag (Pt_ARG_SCROLLBAR_FLAGS) slider_size; // integer (Pt_ARG_SLIDER_SIZE) }
This widget is a vertical or horizontal scrollbar with a handle that slides in a trough to set and show the position of the scroll area over the virtual area of a PtScrollArea widget. The scrollbar has arrow buttons at either end to move the handle.
The scrollbar trough represents a range of values, which is divided into integer increments. These increments are the unit of measure for the size, position, and movement of the handle. The number of increments is determined by the difference between the maximum and minimum variables.
![]() | For additional information, please refer to PtScrollbar in the Photon documentation. |
| Constant | Description |
|---|---|
| Pt_HORIZONTAL | The scrollbar is oriented horizontally. |
| Pt_VERTICAL | The scrollbar is oriented vertically. This is the default. |
| Constant | Description |
|---|---|
| Pt_SCROLLBAR_HORIZONTAL | Change the scrollbar from vertical to horizontal. |
| Pt_SCROLLBAR_SHOW_ARROWS | Show arrow buttons at both ends of the scrollbar. |
| Pt_SCROLLBAR_INVERTED | Invert the scrolling mechanism: max/min or left/right. |
| Pt_SCROLLBAR_FOCUSED | Render the scrollbar as if it had focus, even when it doesn't. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.