"Horst Borscht" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Laurens" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > > FrmUpdateEvent(frmMain, CATEGORY_RENAMED); // This works > > FrmReturnToForm(0); > I can't believe, taht this works, I guess it must be: > FrmUpdateForm(... > Right?
Yes, it should be FrmUpdateForm. > I had that problem too, but it don't remember exactly. I think, the problem > is, that your MainForm event handler is'nt called. Even if you use > FrmUpdateForm(frmMain..., the event is send the event handler of your active > form. Well, the MainForm event handler does receive the frmUpdateEvent when I close the "Edit Categories..." form using FrmReturnToForm. As you say, frmUpdateEvents seem to get routed to the event handler of the active form. I think FrmUpdateForm is meant to be called just before you close a form. Thinking about this some more, this starts to make sense. Suppose you have a custom updateCode that instructs your form to redraw a particular gadget. Now if you would queue a frmUpdateEvent while your dialog is still open then the gadget would draw inside the dialog instead of inside the underlying form. > I worked around it by explicit calling my MainFormHandler from the > event handler of my active form: This looks like a good workaround. Thanks -Laurens -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
