class PtFileSelCallback
{
item; // PtFileSelItem
nitems; // unsigned integer
reason; // short
sel_mode; // unsigned integer
}
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.
A PtFileSelItem that has been selected.
Used by Pt_CB_FS_SELECTION only; the number of items selected.
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. |
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. |
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.