Regarding creating module

Is there a way to realize a module without showing it on the screen?
ApCreateModule() followed by PtUnRealizeWidget () is not solving the
problem.

TIA
Rajan

rajanr@in.ibm.com wrote:

Is there a way to realize a module without showing it on the screen?
ApCreateModule() followed by PtUnRealizeWidget () is not solving the
problem.

TIA
Rajan

By realizing it, you are putting it on screen :stuck_out_tongue:
well, if i understand you correct, you would like it realized, but not
visible. the only way would be to positionate it outsite the visible
screen area.

rajanr@in.ibm.com wrote:

Is there a way to realize a module without showing it on the screen?
ApCreateModule() followed by PtUnRealizeWidget () is not solving the
problem.

Are you sure you want to realize it?

Wouldn’t creating the widgets but not realizing them solve your
problem?

If so, then returning Pt_HALT from a pre-realize setup function will do
the trick, provided that your module is a window module.


Wojtek Lerch QNX Software Systems Ltd.

You’re referring to a dialog/window module, right? ie you want to
ApCreateModule() it without having it realized (ie showing).

Create a pre-realize setup function associated with the module link, and in
that function return Pt_HALT. This tells the library that you don’t want it
displayed right away. In order to have it show up you will have to
PtRealizeWidget() it later.

<rajanr@in.ibm.com> wrote in message news:a4qioh$d35$1@nntp.qnx.com

Is there a way to realize a module without showing it on the screen?
ApCreateModule() followed by PtUnRealizeWidget () is not solving the
problem.

TIA
Rajan

I’m not sure if this will help, but you can change the size
of the widget to 1 x 1 before realizing. This will create just
a single pixel. You could also realize it underneath another widget.
This can cause flashing under some circumstances however.


Previously, rajanr@in.ibm.com wrote in qdn.public.qnxrtp.photon:

Is there a way to realize a module without showing it on the screen?
ApCreateModule() followed by PtUnRealizeWidget () is not solving the
problem.

TIA
Rajan


Mitchell Schoenbrun --------- maschoen@pobox.com