class PtScrollArea PtContainer { scroll_area_flags; // flag (Pt_ARG_SCROLL_AREA_FLAGS) scroll_area_increment_x; // unsigned short (Pt_ARG_SCROLL_AREA_INCREMENT_X) scroll_area_increment_y; // unsigned short (Pt_ARG_SCROLL_AREA_INCREMENT_Y) scroll_area_max_x; // unsigned short (Pt_ARG_SCROLL_AREA_MAX_X) scroll_area_max_y; // unsigned short (Pt_ARG_SCROLL_AREA_MAX_Y) scroll_area_pos_x; // unsigned short (Pt_ARG_SCROLL_AREA_POS_X) scroll_area_pos_y; // unsigned short (Pt_ARG_SCROLL_AREA_POS_Y) scrollbar_x_display; // unsigned short (Pt_ARG_SCROLLBAR_X_DISPLAY) scrollbar_x_height; // unsigned short (Pt_ARG_SCROLLBAR_X_HEIGHT) scrollbar_y_display; // unsigned short (Pt_ARG_SCROLLBAR_Y_DISPLAY) scrollbar_y_width; // unsigned short (Pt_ARG_SCROLLBAR_Y_WIDTH) }
This widget is physical window that can display part of what is usually a larger virtual area. Scrollbars are provided for moving non-visible portions of the virtual area into the display area.
For detailed information, please refer to PtScrollArea in the Photon documentation. |
This instance variable controls scrolling behavior, and may be a combination of zero or more of the following flags:
Constant | Description |
---|---|
Pt_SCROLL_AREA_IGNORE_KEYS | Makes the scroll area ignore the PgUp, PgDn, Home, End and arrow keys. |
Pt_SCROLL_AREA_TRACK_FOCUS | Enables auto-scrolling to keep widgets visible when being moved. |
A number specifying the number of pixels to scroll the display in the x or y direction when the scrollbar arrow is clicked. Default is 10.
A number specifying the maximum width (x) or height (y) of the widget's virtual display. The visible portion of this area can be specified with the inherited area variable.
A number of pixels specifying the horizontal (x) or vertical (y) position of the virtual area.
These instance variables control the whether horizontal (x) or vertical (y) scrollbars appear. Each variable may have one of the following values:
Constant | Description |
---|---|
Pt_NEVER | Never show the scrollbar. |
Pt_ALWAYS | Always show the scrollbar. |
Pt_AS_REQUIRED | Show the scrollbar when the virtual area is greater than the display area. |
A number of pixels specifying the scrollbar trough size, which means the trough height for horizontal scrollbars and trough width for vertical scrollbars. The minimum is 6. The default value, 0, sets the size to 15.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.