Skip navigation.
Home
The QNX Community Portal

View topic - Reason for previous question

Reason for previous question

Read-only archive of qnx.gui (Creating graphical applications within a GUI environment, such as Photon or PhAB) at inn.qnx.com

Reason for previous question

Postby Kevin Stallard » Wed Jul 04, 2007 9:36 pm

I'm having trouble seeing a widget using the region viewer utility. The
widget will draw itself on the screen, but there is no corresponding region
rectangle in the region viewer.

Kind of like a vampire looking into a mirror. You know the vampire is
there, but you can't see it from the reflection in the mirror....

Thanks
Kevin
Kevin Stallard
 

RE: Reason for previous question

Postby qnxloader » Thu Jul 05, 2007 7:05 am

Not all widgets has region.
qnxloader
Senior Member
 
Posts: 206
Joined: Mon Oct 06, 2003 8:29 am

RE: Reason for previous question

Postby maschoen » Thu Jul 05, 2007 8:13 am

You might find it instructive to keep in mind that regions are dealt with by the Photon kernel. Issues like whether a keyboard event is detected by a region are handled in a process outside of the user's process. Widgets on the other hand, are handled by code in the user's process. Their code is found in an application library.

It therefore would be possible, at least in principle, to have a completely different set of widgets on top of the Photon kernel. Windows are a special case in that they require a window manager to interact with. Killing the window manager after starting a number of photon applications can also be instructive as to how things all fit together. At least it was when I tried it under QNX 4.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Reason for previous question

Postby David Gibbs » Thu Jul 05, 2007 5:12 pm

qnxloader <tygtim@mail-dot-ru.no-spam.invalid> wrote:
Not all widgets has region.

In fact, most widgets don't have their own region. They only get
one if they need it.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs
 

Re: Reason for previous question

Postby Kevin Stallard » Thu Jul 05, 2007 11:50 pm

Yes, I have an application that currently runs w/o the windows manager.
It is interesting....

Thanks
Kevin
"maschoen" <maschoen@pobox-dot-com.no-spam.invalid> wrote in message
news:f6ier1$2rh$1@inn.qnx.com...
You might find it instructive to keep in mind that regions are dealt
with by the Photon kernel. Issues like whether a keyboard event is
detected by a region are handled in a process outside of the user's
process. Widgets on the other hand, are handled by code in the
user's process. Their code is found in an application library.

It therefore would be possible, at least in principle, to have a
completely different set of widgets on top of the Photon kernel.
Windows are a special case in that they require a window manager to
interact with. Killing the window manager after starting a number
of photon applications can also be instructive as to how things all
fit together. At least it was when I tried it under QNX 4.
Kevin Stallard
 


Return to qnx.gui

Who is online

Users browsing this forum: No registered users and 1 guest