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/pt/ptforwardwindowevent.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/pt/ptforwardwindowevent.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/pt/ptforwardwindowevent.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/pt/ptforwardwindowevent.html on line 8
Forward a window event to the window with a given region ID
int PtForwardWindowEvent(
PhWindowEvent_t const *window_event );
ph
This function forwards the provided window event to the window manager,
which forwards it to the window whose region ID is specified in the event.
- 0
- Success.
- -1
- The message couldn't be forwarded, possibly because
either the Photon Manager or pwm wasn't running.
int give_a_window_focus( PtWidget_t *widget )
{
PhWindowEvent_t WE;
if( !widget || !PtWidgetIsClassMember( widget, PtWindow ))
return -1;
memset( &WE, 0, sizeof (WE));
WE.event_f = Ph_WM_FOCUS;
WE.rid = PtWidgetRid( widget );
WE.event_state = Ph_WM_EVSTATE_FOCUS;
return PtForwardWindowEvent( &WE );
}
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PhWindowEvent_t,
PtForwardWindowTaskEvent()
PtWindowFocus(),
PtWindowToBack(),
PtWindowToFront()
in the Photon Widget Reference
Window Management
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/pt/ptforwardwindowevent.html on line 124
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/pt/ptforwardwindowevent.html on line 124