Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 8

PtTreeShow()

Set the position so that the specified item is visible

Synopsis:

int PtTreeShow( PtWidget_t *widget, 
                PtTreeItem_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 lets you do something like this:

PtTreeShow( widget, PtTreeGetCurrent(widget) );

without checking to see if PtTreeGetCurrent() returned NULL.

Returns:

0
Success.
Nonzero
item belongs to a collapsed subtree, and a callback function prevented the subtree from being expanded

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTree, PtTreeClearSelection(), PtTreeCollapse(), PtTreeExpand(), PtTreeGetCurrent(), PtTreeGetSelIndexes(), PtTreeGoto(), PtTreeItem_t, PtTreeRootItem(), PtTreeSelect()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 111

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeshow.html on line 111