Set the current position so that a given item is visible
int PtGenTreeShow( PtWidget_t *widget, PtGenTreeItem_t *item );
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.
The value returned by the Tree Item State method.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |