Thanks for your reply.

calling the update routine after FrmDrawForm shouldn't
work either since the calculation gets executed twice
(the first time due to the FrmDrawEvent and second when
I call it myself).

So there's no possibility to avoid this other than to
check the OS version ?

Thanks anyway

-----------------------------------------------------------------------
Mfg

Maik Boenig




> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im Auftrag von
> Jim Schram
> Gesendet am: Freitag, 11. Februar 2000 10:38
> An: Palm Developer Forum
> Betreff: Re: difficulties with frmupdate
>
> 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
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to