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/pttreemodifyitem.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/pttreemodifyitem.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/pttreemodifyitem.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/pttreemodifyitem.html on line 8
Change item resources
PtTreeItem_t *PtTreeModifyItem( PtWidget_t *tree,
PtTreeItem_t *item,
const char *string,
short set_img,
short unset_img );
This function changes item resources:
- The item's string is changed to be a copy of string.
If string is NULL, the item's string isn't changed.
- The set_img argument is the index of the image that's
displayed when the item is set, and unset_img is the image
displayed when it isn't set. An item is considered set if its flags
masked with the Pt_ARG_TREE_IMGMASK resource of the
widget give a nonzero value.
The tree is a pointer to the PtTree that the
item belongs to, or NULL.
If the item is in a tree, it must be in the one pointed to by tree.
The new address of the item.
|
This address may differ from the old one if the new string is longer. |
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtTree,
PtTreeAllocItem(),
PtTreeItem_t,
PtTreeItemIndex(),
PtTreeModifyItemString()
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/pttreemodifyitem.html on line 115
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/pttreemodifyitem.html on line 115