[Previous] [Contents] [Index] [Next]

ApModuleParent()

Specify the parent for a window module

Synopsis:

#Include <Ap.h>

void ApModuleParent( ApEventLink_t *link_callback,
                     int parent,
                     PtWidget_t *widget );

Description:

ApModuleParent() lets you specify the parent module for a Window module. The parent is one of the following:

AB_PARENT
The widget argument points to the window module's new parent.
AB_NO_PARENT
The window module should have no parent. The widget argument is ignored.

Note: This function works only with window modules.

Examples:

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 );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

[Previous] [Contents] [Index] [Next]