PtListCallback

PtListCallback — item selection callback information.

Synopsis

class PtListCallback
{
    item;        // string
    item_len;    // integer
    item_pos;    // integer
    mode;        // unsigned integer
}
         

Description

These classes hold information from a Pt_CB_SELECTION callback, which is generated when an item is selected from a PtList or a PtComboBox list.

Also see Pt_CB_SELECTION in the PtList section of the Photon documentation.

Instance Variables

item

A string indicating the selected item.

item_len

A number of bytes indicating the length of the selected item.

item_pos

An integer indicating the position of the item in the list array.

mode

An integer specifying the selection mode, which is discussed in detail at Pt_ARG_SELECTION_MODE in the PtGenList section of the Photon documentation.

Associated Classes

PtList, PtListInput, PtComboBox, PtCallbackInfo