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/ptgentreeaddfirst.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/ptgentreeaddfirst.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/ptgentreeaddfirst.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/ptgentreeaddfirst.html on line 8

PtGenTreeAddFirst()

Add items in front of any existing items

Synopsis:

int PtGenTreeAddFirst( PtWidget_t *tree, 
                       PtGenTreeItem_t *item,
                       PtGenTreeItem_t *parent );

Description:

This function adds the list of PtGenTreeItem_t structures pointed to by item to the given PtGenTree widget. The list of items are linked with their brother fields. The item argument can be NULL.

The parent argument identifies the parent item for the added items (if any). The new items are added in front of any existing children of the parent item. If parent is NULL, the items are added at the root level of the tree, before any existing items there.

The tree argument can be NULL, provided that parent points to an item that isn't attached to any tree widget.

PtGenTreeAddFirst() sets the Pt_TREE_ITEM_EXPANDABLE flag in the parent item, whether or not the item argument is NULL.

Returns:

0
Success.
-1
The item is already in a widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree, PtGenTreeItem_t


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/ptgentreeaddfirst.html on line 114

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/ptgentreeaddfirst.html on line 114