Iconifying

Hi,

What trick uses photon when you iconify a window ?

I thought photon was doing a PtUnrealizeWidget()/PtRealizeWidget() but it seems not, because if I try to simulate it with such calls the redraw of the window is VERY slow compared to when I iconify/uniconify it.

Thanks.

jhroyer <nospam28@joher.com> wrote:

Hi,

What trick uses photon when you iconify a window ?

I thought photon was doing a PtUnrealizeWidget()/PtRealizeWidget() but it seems not, because if I try to simulate it with such calls the redraw of the window is VERY slow compared to when I iconify/uniconify it.

We send a message to the Window manager (pwm) to do a
Ph_WM_HIDE.

Thanks.

Sorry I can’t use that because my windows are brothers,
and if i iconfify them but one, if i click on the uniconified
one, all the others appears right away.

So my question is, what function is using (or how is doing)
the Window Manager to hide & unhide a window ?

I thought it was PtUnrealize/PtRealize put it’s not.

Regards.

Previously, Steve wrote in qdn.public.qnxrtp.photon:

jhroyer <> nospam28@joher.com> > wrote:
Hi,

What trick uses photon when you iconify a window ?

I thought photon was doing a PtUnrealizeWidget()/PtRealizeWidget() but it seems not, because if I try to simulate it with such calls the redraw of the window is VERY slow compared to when I iconify/uniconify it.

We send a message to the Window manager (pwm) to do a
Ph_WM_HIDE.

Thanks.

jhroyer <nospam28@joher.com> wrote:
: Sorry I can’t use that because my windows are brothers,
: and if i iconfify them but one, if i click on the uniconified
: one, all the others appears right away.

: So my question is, what function is using (or how is doing)
: the Window Manager to hide & unhide a window ?

The window manager uses the low-level region functions but I
do not recommend using these on windows that are brothers
because PWM will get really confused about the window
hierarchy. Instead you might consider breaking the “brother”
links by making your windows parentless. This will allow you
to iconify them individually.

: I thought it was PtUnrealize/PtRealize put it’s not.

: Regards.

: Previously, Steve wrote in qdn.public.qnxrtp.photon:
:> jhroyer <nospam28@joher.com> wrote:
:> > Hi,
:>
:> > What trick uses photon when you iconify a window ?
:>
:> > I thought photon was doing a PtUnrealizeWidget()/PtRealizeWidget() but it seems not, because if I try to simulate it with such calls the redraw of the window is VERY slow compared to when I iconify/uniconify it.
:>
:> We send a message to the Window manager (pwm) to do a
:> Ph_WM_HIDE.
:>
:> > Thanks.
:>

Steve Tomkins <stomkins@qnx.com> wrote in message
news:8qt6u7$mup$9@nntp.qnx.com

jhroyer <> nospam28@joher.com> > wrote:
: Sorry I can’t use that because my windows are brothers,
: and if i iconfify them but one, if i click on the uniconified
: one, all the others appears right away.

: So my question is, what function is using (or how is doing)
: the Window Manager to hide & unhide a window ?

The window manager uses the low-level region functions but I
do not recommend using these on windows that are brothers
because PWM will get really confused about the window
hierarchy. Instead you might consider breaking the “brother”
links by making your windows parentless. This will allow you
to iconify them individually.

Or you can just move you’re windows into non-visible (read negative) space.
ie. to “hide” a window set Pt_ARG_POS to -10000,-10000.
The window disappears instantly.
To make the window reappear set Pt_ARG_POS back to its original value
the window will show up again in short order, in the correct depth in its
family hiearchy.

: I thought it was PtUnrealize/PtRealize put it’s not.

: Regards.

: Previously, Steve wrote in qdn.public.qnxrtp.photon:
:> jhroyer <> nospam28@joher.com> > wrote:
:> > Hi,
:
:> > What trick uses photon when you iconify a window ?
:
:> > I thought photon was doing a PtUnrealizeWidget()/PtRealizeWidget()
but it seems not, because if I try to simulate it with such calls the redraw

of the window is VERY slow compared to when I iconify/uniconify it.

:
:> We send a message to the Window manager (pwm) to do a
:> Ph_WM_HIDE.
:
:> > Thanks.
: