Steve,

The short version is that, if you return false, the frmUpdateEvent flows to
FormHandleEvent, which provides default handling -- in this case a redraw
via FrmDrawForm().  Generally, if you're handling this event yourself you
probably don't need the FrmDrawForm(), and in fact, you're inviting bugs in
3.5+, because _technically_ FrmDrawForm() will clear the display before
(re)drawing the form, so anything you drew yourself beforehand is gone, or
at least redrawn.

I guess that means the even shorter version is: return true after handling
frmUpdateEvent.

oge


Steve Patt wrote:

> Now that you mention this, I look at code in several of my apps and 
> sometimes I'm returning true after processing frmUpdateEvent and 
> sometimes false. I have no idea why, and I can't say that it has 
> mattered, at least so far as I've noticed. Anyone care to shed any light 
> on why this might (or might not) matter?
> 
> Steve Patt
> President, Stevens Creek Software
>   http://www.stevenscreek.com/palm
>   Best PQA ("ePQA"), PalmSource 99
>   Best Application ("PizzaScan"), Palm Developer's Conference 1998
>   First printing software for the Palm - September, 1997

Reply via email to