How to hide and show the widget?

Hi, all

I want to hide and show widget dynamically in my application. What should
I do? Thank you!

Flying.

lp <lpeng@naef-china.com> wrote:

: Hi, all

: I want to hide and show widget dynamically in my application. What should
: I do? Thank you!

You can realize it and unrealize it by calling PtRealizeWidget() and
PtUnrealizeWidget().

If you want a faster way, just change the widget’s position so that it’s
drawn in an area off the screen (e.g. use large negative coordinates).


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

using PtRealizeWidget and PtUnrealizeWidget…
lp <lpeng@naef-china.com> wrote in message news:a55jbr$hl0$1@inn.qnx.com

Hi, all

I want to hide and show widget dynamically in my application. What
should
I do? Thank you!

Flying.

\

Using PtRealizeWidget() and PtUnrealizeWidget() isn’t good idea if you want
use them in module setup function.

Positioning widget off the screen works very well for me.

lp <lpeng@naef-china.com> wrote in message news:a55jbr$hl0$1@inn.qnx.com

Hi, all

I want to hide and show widget dynamically in my application. What
should
I do? Thank you!

Flying.

\