Missing refresh

I have problems with widgets I read in from a photon database when using
the following piece of code:

pDB = ApOpenDBaseFile("…/…/wgt/Haptomat.wgtw");
if (pDB == NULL) {
printf(“ApOpenDBaseFile %s\n”, strerror(errno));
return Pt_CONTINUE;
}
pQNXWidget = ApCreateDBWidgetFamily(pDB, “Haptomat”, NULL,
NULL, 0, NULL);
if (pQNXWidget == NULL) {
printf(“ApCreateDBWidgetFamily %s\n”, strerror(errno));
return Pt_CONTINUE;
}
PtRealizeWidget(pQNXWidget);

The “Haptomat” is a complete window. After reading it from the database
the window apperas on the screen but the contents are not shown. The
contained buttons behave well when pressed but they are initially not
visible on the screen. When pressing a button the usual iamge changes
work but after hiding them behind another window and revealing them they
wont be refreshed. What am I doing wrong?

Thanks, Dominik

I have investigated further the mentioned problem. It appears if the
database contains a PtLabel with an image larger than approximately 14.5 kB.
Since I have to display such an image I tried to use the (undocumented)
PtImageArea. The results haven’t been better but other irregularities arose.
So my new question: what is the recommended way loading windows out of an
database containing images larger than 14.5kB?

Dominik

Dominik Diesch schrieb:

I have problems with widgets I read in from a photon database when using
the following piece of code:

pDB = ApOpenDBaseFile("…/…/wgt/Haptomat.wgtw");
if (pDB == NULL) {
printf(“ApOpenDBaseFile %s\n”, strerror(errno));
return Pt_CONTINUE;
}
pQNXWidget = ApCreateDBWidgetFamily(pDB, “Haptomat”, NULL,
NULL, 0, NULL);
if (pQNXWidget == NULL) {
printf(“ApCreateDBWidgetFamily %s\n”, strerror(errno));
return Pt_CONTINUE;
}
PtRealizeWidget(pQNXWidget);

The “Haptomat” is a complete window. After reading it from the database
the window apperas on the screen but the contents are not shown. The
contained buttons behave well when pressed but they are initially not
visible on the screen. When pressing a button the usual iamge changes
work but after hiding them behind another window and revealing them they
wont be refreshed. What am I doing wrong?

Thanks, Dominik