All,

The following is a clip from the documentation for frmUpdateEvent in the
Palm OS 5.0 documentation.  I am confused by how the event is supposed to be
received by the application.  The documentation states when a form (or part
of it) needs to be redrawn, a frmUpdateEvent is added to the event queue.
However, I believe that when the OS shuts down a system modal form (via
DoDialog) the event is not added to the queue, but in fact dispatched
directly to the form that is supposed to be updated (via the registered
event handler).  If the event was actually added to the event queue, I
should see the event during my EvtGetEvent() loop.  However, this is not the
behavior that I am seeing.  The form is receiving the event directly,
circumventing my applications event handler (where I want to handle it).  Is
the documentation wrong, or am I misunderstanding it?

<--- Clip from 5.0 docs --->
"The form routine FrmUpdateForm, or in some cases the routine FrmEraseForm,
sends this event when it needs to redraw the region obscured by the form
being erased.

Generally, the region obscured by a form is saved and restored by the form
routines without application intervention. However, in cases where the
system is running low on memory, the form's routine may not save obscured
regions itself. In that case, the application adds a frmUpdateEvent to the
event queue. The form receives the event and redraws the region using the
updateCode value. "
<--- End doc clip --->

Thanks,

Brad



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to