Gert-Jan Vons wrote: > 1) it is allowed to FrmDrawForm() before FrmDoDialog()
True, and if you do, FrmDoDialog is smart enough to avoid drawing the form a second time. > 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. Actually, there aren't any frmOpenEvents or frmCloseEvents in this case. Your event handler actually gets all the events. In fact, it gets first crack at the events. In general, I advise anyone using the FrmDoDialog API to do a multi-file search to find examples of how it is used. If you copy the call sequence of an existing working dialog, you'll save yourself a lot of work. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
