Hi,
I'm working on trying to add support for Sony's Virtual Silkscreen to one of
our apps. I've run into a problem I don't know what to do about. I've
registered for the sysNotifyDisplayChangeEvent notification, so that my
application knows when the virtual silkscreen has been turned on/off. When
this notification is received, I'm doing this:
FrmUpdateForm(FrmGetActiveFormID(), 40);
Each of my forms will respond to update code 40 by redrawing itself, sized
for the correct screen size. This seems to work. However, if I have a form
with a popup form on top of it, I run into a problem. In this case, it's the
underlying form that needs to be updated, and not the popup form returned by
FrmGetActiveFormID. So the FrmUpdateForm doesn't work.
I thought I could "pass through" the update to the underlying form by doing
this:
case frmUpdateEvent:
switch(event->data.frmUpdate.updateCode) {
case 40:
FrmUpdateForm(underlying_form_id, 40);
handled = true;
break;
}
break;
in the popup form's handler. But, this results in an infinite loop of
updates to the popup form. (Why is that?)
In any case, it must be possible to do this, because if I run the Address
Book application on my NX-60 and select Preferences from the menu, a popup
form appears. The blue button that toggles the virtual silkscreen is
enabled, and tapping on it causes the UNDERLYING form to be redrawn. So
there has to be a way to do it. (Interestingly enough, in the Sony NR70
emulator, the blue button is DISABLED.)
Anybody know how I can cause the update event to get sent to the underlying
form? Or is there a better approach to what I'm trying to do? Thanks.
Tom
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/