Appbuilder: 1.13-1.14 incompatibility?

I have a graphic application developed in QNX 4.24 and Photon 1.13 (PhAB
1.13), where I use a widget database containing a panel with a number of
widget inside. One of these widget has a callback attached on the Lost
Focus event. During run-time I open the database, extract the panel and
attach it with ApCreateFamilyWidget to another panel in a different
window. When I leave the widget containing the Lost Focus callback, the
callback is correctly called. Lately I ported the application on QNX
4.25, Photon 1.14 (PhAB 1.14). I regenerated the application and the
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

Thank you very much.

Gianfranco.

Previously, Gianfranco Girardi wrote in comp.os.qnx:

I have a graphic application developed in QNX 4.24 and Photon 1.13 (PhAB
1.13), where I use a widget database containing a panel with a number of
widget inside. One of these widget has a callback attached on the Lost
Focus event. During run-time I open the database, extract the panel and
attach it with ApCreateFamilyWidget to another panel in a different
window. When I leave the widget containing the Lost Focus callback, the
callback is correctly called. Lately I ported the application on QNX
4.25, Photon 1.14 (PhAB 1.14). I regenerated the application and the
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

Just a wild guess here. Did you close the database after creating the
widget? I had a situation where I did this and found that the widget
was still pointing back to the database.


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

Yes, I closed the database just after ApFamilyCreateWidget and PtRealize
calls.

Gianfranco

Mitchell Schoenbrun wrote:

Previously, Gianfranco Girardi wrote in comp.os.qnx:
I have a graphic application developed in QNX 4.24 and Photon 1.13 (PhAB
1.13), where I use a widget database containing a panel with a number of
widget inside. One of these widget has a callback attached on the Lost
Focus event. During run-time I open the database, extract the panel and
attach it with ApCreateFamilyWidget to another panel in a different
window. When I leave the widget containing the Lost Focus callback, the
callback is correctly called. Lately I ported the application on QNX
4.25, Photon 1.14 (PhAB 1.14). I regenerated the application and the
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

Just a wild guess here. Did you close the database after creating the
widget? I had a situation where I did this and found that the widget
was still pointing back to the database.

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

Previously, Gianfranco Girardi wrote in comp.os.qnx:

Yes, I closed the database just after ApFamilyCreateWidget and PtRealize
calls.

You might try leaving it open to see if the results are
different. Our situation was that we had widgets with
custom graphic images covering them. We would end up with
the widget filled with garbage. The problem was that the
widget was referencing back to the database to get the graphic
image. Before we solved this we ended up loading the images
manually.

This may not relate directly to your problem, but it could have
a similar cause.


Gianfranco

Mitchell Schoenbrun wrote:

Previously, Gianfranco Girardi wrote in comp.os.qnx:
I have a graphic application developed in QNX 4.24 and Photon 1.13 (PhAB
1.13), where I use a widget database containing a panel with a number of
widget inside. One of these widget has a callback attached on the Lost
Focus event. During run-time I open the database, extract the panel and
attach it with ApCreateFamilyWidget to another panel in a different
window. When I leave the widget containing the Lost Focus callback, the
callback is correctly called. Lately I ported the application on QNX
4.25, Photon 1.14 (PhAB 1.14). I regenerated the application and the
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

Just a wild guess here. Did you close the database after creating the
widget? I had a situation where I did this and found that the widget
was still pointing back to the database.

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


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

Gianfranco Girardi wrote:
[…]

Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

I remember, we had a similar problem about 1 or 2 years ago, though it
was definatly not an appbuilder issue, but it was related to a change
of the photon runtime module. Something in the focus handling changed –
unfortunately I cannot remember, how we solved that :frowning:

… some adaptions in the notification flags and callbacks, I remember


\


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld

We tried also leving the database open but we got the same result.
A more deep analysis conduced to this news: since the widget with the attached
callbacks was a PtComboBox, we tried with a sample program to reproduce the
problem and what we have seen is that this kind of widget doesn’t manage this
event (BUG?).

Mitchell Schoenbrun wrote:

Previously, Gianfranco Girardi wrote in comp.os.qnx:
Yes, I closed the database just after ApFamilyCreateWidget and PtRealize
calls.

You might try leaving it open to see if the results are
different. Our situation was that we had widgets with
custom graphic images covering them. We would end up with
the widget filled with garbage. The problem was that the
widget was referencing back to the database to get the graphic
image. Before we solved this we ended up loading the images
manually.

This may not relate directly to your problem, but it could have
a similar cause.


Gianfranco

Mitchell Schoenbrun wrote:

Previously, Gianfranco Girardi wrote in comp.os.qnx:
I have a graphic application developed in QNX 4.24 and Photon 1.13 (PhAB
1.13), where I use a widget database containing a panel with a number of
widget inside. One of these widget has a callback attached on the Lost
Focus event. During run-time I open the database, extract the panel and
attach it with ApCreateFamilyWidget to another panel in a different
window. When I leave the widget containing the Lost Focus callback, the
callback is correctly called. Lately I ported the application on QNX
4.25, Photon 1.14 (PhAB 1.14). I regenerated the application and the
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

Just a wild guess here. Did you close the database after creating the
widget? I had a situation where I did this and found that the widget
was still pointing back to the database.

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


\

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

A more deep analysis conduced to this news: since the widget with the
attached
callbacks was a PtComboBox, we tried with a sample program to reproduce the
problem and what we have seen is that this kind of widget doesn’t manage
this
event (BUG?).

Karsten Hoffmann wrote:

Gianfranco Girardi wrote:
[…]
Lost Focus Callback is no more called. There are also other callbacks
attached on other events and these are called correctly. It seem a
problem of application builder versions incompatibility. Any other had
similar problems?

I remember, we had a similar problem about 1 or 2 years ago, though it
was definatly not an appbuilder issue, but it was related to a change
of the photon runtime module. Something in the focus handling changed –
unfortunately I cannot remember, how we solved that > :frowning:

… some adaptions in the notification flags and callbacks, I remember


| / | __ ) | > Karsten.Hoffmann@mbs-software.de > MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld