PtFileSelCallback

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

# `PtFileSelCallback`

`PtFileSelCallback` -- file selection callback information.

## Synopsis

    class PtFileSelCallback
    {
        item;        // PtFileSelItem
        nitems;      // unsigned integer
        reason;      // short
        sel_mode;    // unsigned integer
    }

## Description

This class holds information from a `Pt_CB_FS_STATE` or `Pt_CB_FS_SELECTION` callback. These callbacks are generated when a file is selected in a `PtFileSel`.

Also see Pt_CB_FS_STATE or Pt_CB_FS_SELECTION in the PtFileSel section of the Photon documentation.

## Instance Variables

item

  A `PtFileSelItem` that has been selected.

nitems

  Used by `Pt_CB_FS_SELECTION` only; the number of items selected.

reason

  Used by `Pt_CB_FS_STATE` only; one of the following constants is possible:

  Constant | Definition
  --- | ---
  `Pt_FS_STATE_START` | The callback is being called before the disk is read.
  `Pt_FS_STATE_END` | The callback is being called after the disk is read.

sel_mode

  An integer specifying the selection mode, which can be one or more of the following:

  Constant | Definition
  --- | ---
  `Pt_BROWSE_MODE` | Click with mouse or drag and release to select one item.
  `Pt_MULTIPLE_MODE` | Select multiple items by clicking on them. A second click releases the item.
  `Pt_EXTENDED_MODE` | Shift click to select a range, Ctrl click to select disjoint items.
  `Pt_SINGLE_MODE` | Select one item at a time. Selecting a second item releases the first.
  `Pt_RANGE_MODE` | Press, drag, and release mouse to select a range of items.

## Associated Classes

`PtFileSel`, `PtFileSelBkgdCallback`, `PtCallbackInfo`

Prev | Home | Next
`PtDividerCallback` | Up | `PtFileSelBkgdCallback`

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