Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PtWindowToFront

PtWindowToFront

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

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