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