PtTreeCallback

PtTreeCallbackPtTree callback information.

Synopsis

class PtTreeCallback
{
    click_count;    // integer
    expand;         // integer
    item;           // PtTreeItem
    nitems;         // unsigned integer
    sel_mode;       // unsigned integer
}
		

Description

This class holds information from a Pt_CB_TREE_STATE or Pt_CB_TREE_SELECTION callback, which are generated when a PtTreeItem is selected.

Also see Pt_CB_TREE_STATE and Pt_CB_TREE_SELECTION in the PtTree section of the Photon documentation.

Instance Variables

click_count

The number of times the mouse button has been clicked on the item.

expand

An integer used with Pt_CB_TREE_STATE to prevent expansion. 0 allows expansion to occur, any non-zero value prevents it.

item

A PtTreeItem that the user selected, or the first item of a range of items if the sel_mode has been set to Pt_RANGE_MODE.

nitems

The number of items selected, not including collapsed subtrees.

sel_mode

A number indicating the current selection mode. For details, see Pt_ARG_SELECTION_MODE in the PtGenList section of the Photon documentation.

Associated Classes

PtTree, PtCallbackInfo