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

PtFindChildClassMember()

Find the first descendant that's a subclass of the specified class

Synopsis:

PtWidget_t *PtFindChildClassMember( 
                  PtWidgetClassRef_t *class,
                  PtWidget_t *widget );

Library:

ph

Description:

This function searches the widget family hierarchy of the given container, widget, for a descendant widget that's a subclass of the specified class. For example, PtMultiText, PtText, PtButton, and PtLabel are all subclasses of PtLabel.


Note: Some container widgets, including PtDivider, PtMenuBar, PtMultiText, and PtScrollArea redirect children to an alternate parent. For all container widgets, it's best to call PtValidParent() to determine the “real” parent of the children. For example, to find a subclass of PtLabel in a PtScrollArea:
child = PtFindChildClassMember( PtLabel,
          PtValidParent( my_scrollarea, PtLabel ));

Returns:

A pointer to a PtWidget_t structure, or NULL if an error occurs.

Examples:

See PtFindChildClass().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtWidgetBrotherBehind(), PtWidgetBrotherInFront(), PtWidgetChildBack(), PtWidgetFamily(), PtWidgetParent()


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/ptfindchildclassmember.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/ptfindchildclassmember.html on line 126