class PtScrollbarCallback { action; // unsigned integer position; // integer }
This class holds information from Pt_CB_SCROLL_MOVE (in PtScrollbar) as well as Pt_CB_SCROLLED_X and Pt_CB_SCROLLED_Y (in PtScrollArea). These callbacks are generated when the position of the handle of a scrollbar is changed.
Also see Pt_CB_SCROLL_MOVE in the PtScrollbar section, or Pt_CB_SCROLLED_X in the PtScrollArea section, of the Photon documentation.
This instance variable monitors the action of the scrollbar handle, and takes one of the following values:
Constant | Description |
---|---|
Pt_SCROLL_INCREMENT | The scrollbar handle has moved down or right by one increment. |
Pt_SCROLL_DECREMENT | The scrollbar handle has moved up or left by one increment. |
Pt_SCROLL_PAGE_INCREMENT | The scrollbar handle has moved down or right by the equivalent of one page. |
Pt_SCROLL_PAGE_DECREMENT | The scrollbar handle has moved up or left by the equivalent of one page. |
Pt_SCROLL_TO_MAX | The scrollbar handle has moved to the bottom or far right. |
Pt_SCROLL_TO_MIN | The scrollbar handle has moved to the top or far left. |
Pt_SCROLL_DRAGGED | The scrollbar handle is being dragged. |
Pt_SCROLL_RELEASED | The scrollbar handle has been released from a drag. |
Pt_SCROLL_SET | The scrollbar handle position was set with a function call. |
An integer specifying the position of the scrollbar handle.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.