|
|
RE: How to Hide the base window in a Photon application
|
|
02/09/2009 3:04 AM
post21719
|
RE: How to Hide the base window in a Photon application
Hi,
the code below will merely give focus to a specific window, i.e.,
make it "active" in that all input will be directed to it.
To answer your question, I'd need to know whether the window you
want to show instead already exists (then we could just send it an
event), or need to be created first.
Regards,
- Thomas
> -----Original Message-----
> From: chandrashekhar kulkarni [mailto:community-noreply@qnx.com]
> Sent: 09 February 2009 08:48
> To: general-ide
> Subject: Re: How to Hide the base window in a Photon application
>
> Hi Thomas,
>
> Thanks for the help. I could hide my base window using the
> piece of code suggested by you but I am still not able to
> display a new window in the similar way, within the same
> callback function. I tried it in the following way-
>
> PhWindowEvent_t nwe;
> memset( &nwe, 0, sizeof nwe );
> nwe.event_f = Ph_WM_FOCUS;
> nwe.rid = PtWidgetRid(ABW_newwin);
> nwe.event_state = Ph_WM_EVSTATE_FOCUS;
> PtForwardWindowEvent( &nwe );
>
> Can you further help me in figuring what is wrong?
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post21718
>
>
|
|
|
|
|