[Previous] [Contents] [Index] [Next]

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 you pass item as NULL, the function does nothing. This allows you to 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

[Previous] [Contents] [Index] [Next]