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/lib_ref/pt/ptwidgetfamily.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/lib_ref/pt/ptwidgetfamily.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/lib_ref/pt/ptwidgetfamily.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/lib_ref/pt/ptwidgetfamily.html on line 8
Traverse the widget hierarchy from back to front
PtWidget_t *PtWidgetFamily( PtWidget_t *root,
PtWidget_t *current );
ph
This function walks the depth of the widget hierarchy, starting from
the top widget.
A pointer to the next widget below root in the widget
hierarchy. When the hierarchy has been fully traversed, the function
returns NULL.
PtWidget_t *mycontainer;
PtWidget_t *root;
PtWidget_t *current;
int n;
…
mycontainer = PtCreateWidget( PtContainer, Pt_DEFAULT_PARENT,
n, args );
…
/*
* Set and highlight all PtLabel widgets
* within "mycontainer"
*/
root = current = mycontainer;
PtSetArg( &arg, Pt_ARG_FLAGS, Pt_TRUE,
Pt_HIGHLIGHTED|Pt_SET);
while( current = PtWidgetFamily( root, current ) )
if( PtWidgetIsClass( current, PtLabel) )
PtSetResources( current, 1, &arg );
PtRealizeWidget( mycontainer );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtWidgetBrotherBehind(),
PtWidgetBrotherInFront(),
PtWidgetChildBack(),
PtWidgetChildFront(),
PtWidgetParent(),
PtWidgetSkip(),
PtWidgetToBack(),
PtWidgetToFront(),
PtWidgetTree(),
PtWidgetTreeTraverse()
“Ordering widgets”
in the Managing Widgets in Application Code chapter of the
Photon Programmer's Guide
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/lib_ref/pt/ptwidgetfamily.html on line 126
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/lib_ref/pt/ptwidgetfamily.html on line 126