Hi, Denis Faivre!

Denis Faivre wrote:
> 
> In an application :
> - Form1 invokes Form2 through FrmPopupForm(idForm2).
> - Form2 invokes in turn Form3 through FrmPopupForm(idForm3).
> - Form3 calls FrmReturnToForm(0) and sets a flag in globals to tell Form2 to
> return as well.
> - in frmUpdateEvent processing of Form2, the flag is tested and when true,
> Form2 calls FrmReturnToForm(0).

[...]

> Questions:
> - Is there a better way to have the same behavior, that is: having 2
> FrmReturnToForm(0) chained? For instance, I could catch another event than
> frmUpdateEvent, allthough I don't see which one...

You can consider to use EvtAddEventToQueue before first
FrmReturnToForm(0).

I didn't study this a lot, but as documented in SDK Reference, this
function simply adds new event to the event queue. It will be dispatched
later, when fetched in the main event loop. When you receive it, you can
safely call second FrmReturnToForm(0).

WBR,
-- 
Alexander Horoshilov
http://www.geocities.com/palmega


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

Reply via email to