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/ap/apmoduleparent.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/ap/apmoduleparent.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/ap/apmoduleparent.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/ap/apmoduleparent.html on line 8
Specify the parent for a window or dialog module
#include <Ap.h>
void ApModuleParent( ApEventLink_t *link_callback,
int parent,
PtWidget_t *widget );
- link_callback
- The ABM_ link callback for the module whose parent you want
to specify.
- parent
- One of the following:
- AB_PARENT — the widget argument points
to the module's new parent.
- AB_NO_PARENT — the module should have no parent.
The widget argument is ignored.
- widget
- A pointer to the widget that you want to be the parent of the module.
Ap
ApModuleParent() lets you specify the parent
module for a window or dialog module.
Change my_window to have no parent at all:
ApModuleParent( ABM_my_window, AB_NO_PARENT, NULL );
ApCreateModule( ABM_my_window, NULL, NULL );
Change new_window to have the base window as its parent:
ApModuleParent( ABM_new_window, AB_PARENT, ABW_base );
ApCreateModule( ABM_new_window, NULL, NULL );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
Accessing PhAB Modules from 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/ap/apmoduleparent.html on line 136
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/ap/apmoduleparent.html on line 136