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

PtWindowToFront()

Bring a window to the front and give it focus

Synopsis:

void PtWindowToFront( PtWidget_t *widget );

Description:

This function brings the specified window widget and all its child windows to the front of the workspace and gives the front window focus. To do this, the function sends a message to the Window Manager. The Window Manager may switch consoles if the specified window isn't within the current workspace.


Note: There's no way to move a parent window in front of its child. If you want to be able to move one window in front of another in your application, they must be siblings. For example, to make a window a sibling rather than a child of the base window, set the window's parent to NULL.

Examples:

PtWidget_t   *my_window;

/* bring my window to the front */
PtWindowToFront( my_window );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtWindowToBack(), PtWindowFocus()

PtForwardWindowEvent(), PtWidgetToBack(), PtWidgetToFront() in the Photon Library Reference


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