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

PtTreeRemoveItem()

Unlink an item

Synopsis:

void PtTreeRemoveItem( PtWidget_t *tree,
                       PtTreeItem_t *item );

Description:

This function unlinks the given item together with its children from its parent and brothers (if any) and sets the item->gen.father and item->gen.brother fields to NULL:


Example of PtTreeRemoveItem()


The results of using PtTreeRemoveItem().

The tree argument must point to the PtTree widget containing the item, or can be NULL if the item doesn't belong to any tree.

Note that if tree is NULL and the item has no parent but has a previous brother, then the function can't find the previous brother, and therefore can't unlink the item from its brother. The function does nothing if item->gen.father and tree are NULL.

PtTreeRemoveItem() never clears the Pt_TREE_ITEM_EXPANDABLE flag in the item's parent.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTree, PtTreeAddAfter(), PtTreeAddFirst(), PtTreeAllocItem(), PtTreeFreeAllItems(), PtTreeFreeItems(), PtTreeItem_t, PtTreeRemoveChildren(), PtTreeRemoveList()


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/pttreeremoveitem.html on line 113

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/pttreeremoveitem.html on line 113