PtScrollbarCallback

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `PtScrollbarCallback`

`PtScrollbarCallback` -- handle movement callback information.

## Synopsis

    class PtScrollbarCallback
    {
        action;      // unsigned integer
        position;    // integer
    }

## Description

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.

## Instance Variables

action

  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.

position

  An integer specifying the position of the scrollbar handle.

## Associated Classes

`PtScrollbar`, `PtCallbackInfo`

Prev | Home | Next
`PtOnOffButtonCallback` | Up | `PtSliderCallback`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.