1. Either call parent form method from modal form via pointer to parent form.
2. Or add this event to queue inside frmCloseEvent handler of modal form, because this event will be caught by parent form after exiting from the modal event loop. _________________________________________ Best regards, Maks Pyatkovskiy > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-palm-dev- > [EMAIL PROTECTED] On Behalf Of Rodolphe Brйjaude > Sent: Thursday, February 27, 2003 7:12 PM > To: Palm Developer Forum > Subject: Event with POL > > Hello, > > I work with POL and CW9. I have a modal form that must close and launch a > function > of the MainForm (her parent). I think that I can do this by sending an > event > in the message queue. I create my on event and use EvtAddEvtToQueue() > to post it. but The function of the MainForm is not launched... > (i tried to cath it in the ModalForm and it works). > > How must I specifiy that the message is destinate to the MainForm ( with > the > FormID?) > It looks like the event is instantaneoulsy treated, can I delay it ? > > Is there another way to close my ModalForm and launch a function? > > > Thanks > Rodolphe > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
