At 10:25 AM +0100 2000/02/11, [EMAIL PROTECTED] wrote:
>I try to update my application to work with OS3.5 and noticed that
>a FrmUpdateEvent follows FrmDrawForm in 3.5. Since I didn't noticed this
>in an earlier version, I have some difficulties with the following
>statements
>
>Within my Event-handler I add a UpdateEvent manually, when the forms
>was opened:
>
>case FrmOpenEvent:
> FrmDrawForm();
> AddUpdateEvent;
> handled = true;
> break;
>case FrmUpdateEvent:
> Doing some calculations...
> handled = true;
> break;
>
>Now the calculations within the update-handling are executed once for
>PalmOS 3.1, 3.3, ... and twice for OS3.5.
>
>How can I change my code, so it is only called once for every OS ?
Don't add the update event yourself? I don't see why you're doing it in the
FrmOpenEvent, according to the code snippette above, but I suspect there's a reason
that's just not apparent. You could check the OS version number before posting the
update event to yourself, or just call your update routine directly from within the
FrmOpenEvent, after the FrmDrawForm.
Regards,
Jim Schram
3Com/Palm Computing
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html