Problem with Phindows and window placement

I have a strange intermittent problem that I suspect is caused by
phindows. I have my photon application (created in PhAB) set up to
display certain dialogs at the center of the screen. Occasionally these
dialogs will display higher and to the left of where they should, so
that only the lower right corner of the dialog is visible. When this
happens, the only way to make it not happen every time the dialog is
displayed is to restart the computer. It does not seem to ever happen
unless a phindows session has been started. Because of this I basically
cannot use Phindows at all. I am running QNX 6.1, Phindows 2.0, and
PhAB 2.01. Thanks.

Bruce Davis wrote:

I have a strange intermittent problem that I suspect is caused by
phindows. I have my photon application (created in PhAB) set up to
display certain dialogs at the center of the screen. Occasionally these
dialogs will display higher and to the left of where they should, so
that only the lower right corner of the dialog is visible. When this
happens, the only way to make it not happen every time the dialog is
displayed is to restart the computer. It does not seem to ever happen
unless a phindows session has been started. Because of this I basically
cannot use Phindows at all. I am running QNX 6.1, Phindows 2.0, and
PhAB 2.01. Thanks.

When phindows is iconified, its input/grafx region in Photon is resized
to some small rectangle. This keeps the amount of traffic between
phrelay and phindows to a minimum. However, if your dialogs try to
position themselves in the center of the screen when the screen is this
small, they will of course appear off the top left when you restore the
phindows window.

So are you saying that if I never iconify phindows it will never
happen? By the way, it also happens on the VGA display of the QNX
hardware - does that make sense? And once it happens, it just keeps
doing it until I restart the computer. This seems like a bug to me.

Garry Turcotte wrote:

Bruce Davis wrote:
I have a strange intermittent problem that I suspect is caused by
phindows. I have my photon application (created in PhAB) set up to
display certain dialogs at the center of the screen. Occasionally these
dialogs will display higher and to the left of where they should, so
that only the lower right corner of the dialog is visible. When this
happens, the only way to make it not happen every time the dialog is
displayed is to restart the computer. It does not seem to ever happen
unless a phindows session has been started. Because of this I basically
cannot use Phindows at all. I am running QNX 6.1, Phindows 2.0, and
PhAB 2.01. Thanks.

When phindows is iconified, its input/grafx region in Photon is resized
to some small rectangle. This keeps the amount of traffic between
phrelay and phindows to a minimum. However, if your dialogs try to
position themselves in the center of the screen when the screen is this
small, they will of course appear off the top left when you restore the
phindows window.

Bruce Davis wrote:

So are you saying that if I never iconify phindows it will never
happen?

Yes, that’s my guess.

By the way, it also happens on the VGA display of the QNX
hardware - does that make sense?

If you have a minimized phindows attached to the same
Photon session, then yes it could.

And once it happens, it just keeps
doing it until I restart the computer. This seems like a bug to me.

You should be able to just restart your app.
I’m just not sure if it’s a phindows or a library problem.
We’d need to change the lib anyway to handle the ~10 years?
of phindows that have shipped with this behaviour…

Garry Turcotte wrote:

Bruce Davis wrote:

I have a strange intermittent problem that I suspect is caused by
phindows. I have my photon application (created in PhAB) set up to
display certain dialogs at the center of the screen. Occasionally these
dialogs will display higher and to the left of where they should, so
that only the lower right corner of the dialog is visible. When this
happens, the only way to make it not happen every time the dialog is
displayed is to restart the computer. It does not seem to ever happen
unless a phindows session has been started. Because of this I basically
cannot use Phindows at all. I am running QNX 6.1, Phindows 2.0, and
PhAB 2.01. Thanks.

When phindows is iconified, its input/grafx region in Photon is resized
to some small rectangle. This keeps the amount of traffic between
phrelay and phindows to a minimum. However, if your dialogs try to
position themselves in the center of the screen when the screen is this
small, they will of course appear off the top left when you restore the
phindows window.