PtGenTreeShow()

Set the current position so that a given item is visible

Synopsis:

int PtGenTreeShow( PtWidget_t *widget, 
                   PtGenTreeItem_t *item );

Description:

This function sets the current position so that the given item is visible. If item is NULL, the function does nothing. This lets you do something like this:

PtGenTreeShow( widget, PtGenTreeGetCurrent(widget) );

without checking whether PtGenTreeGetCurrent() returned a NULL value.

PtGenTreeShow() can be called with an item whose ancestor is collapsed, in which case the ancestor will be expanded.

Returns:

The value returned by the Tree Item State method.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree, PtGenTreeItem_t