At 22:42 10/12/2001, Peter Epstein wrote:
>In short, I think your code should work properly even without the
>"FrmSetFocus(prevForm, noFocus);" at the top of PrefDialog() as long as
>you get rid of "FrmSetActiveForm(frm);".
I just tried that, and it indeed works ok.
Without FrmSetActiveForm(), there's no need to save/restore the focus of
the underlying form.
So for the archive, what I've learned sofar:
1) it is allowed to FrmDrawForm() before FrmDoDialog()
2) it is allowed to FrmSetFocus() before FrmDoDialog(), provided
the form is drawn first.
3) one should not use FrmSetActiveForm() but leave that
to FrmDoDialog() instead.
4) it is allowed to call FrmSetEventHandler() before
FrmDoDialog(), but the handler will not receive the
frmOpenForm and frmCloseForm events.
Gert-Jan
-----
"Nothing in life is to be feared. It is only to be understood."
- Marie Curie
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/