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/wid_build/libs/ptcompoundredirect.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/wid_build/libs/ptcompoundredirect.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/wid_build/libs/ptcompoundredirect.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/wid_build/libs/ptcompoundredirect.html on line 8

PtCompoundRedirect()

Redirect widgets to a parent

Synopsis:

PtWidget_t *PtCompoundRedirect( 
                PtWidget_t *container,
                PtWidgetClassRef_t *child_cref );

Arguments:

container
A pointer to the container widget from which you want to redirect the children.
child_cref
The class of the child widget (e.g. PtButton).

Description:

This function returns the parent of a compound widget, making the compound widget seem like a simple widget (i.e. users can't place widgets inside container).

This is especially useful for rejecting widgets or redirecting widgets to subordinate containers (e.g. PtScrollArea does this).

This redirector function can be added to a custom compound widget by using the Pt_SET_CHILD_REDIRECT_F manifest defined by PtContainer.

Returns:

A pointer to the parent of the given compound widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

Container widget anatomy in the Anatomy of a Widget chapter.


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/wid_build/libs/ptcompoundredirect.html on line 110

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/wid_build/libs/ptcompoundredirect.html on line 110