Modeless Forms
You’ll
normally call
FrmGotoForm
to display a modeless form. It will then
post:
A
frmCloseEventfor the active form (if any; as your program begins, there is no active form)A
frmLoadEventand afrmOpenEventfor the specified form
Your application-wide event handler, often named
AppHandleEvent
, handles the frmLoadEvent
by calling FrmInitForm,
FrmSetActiveForm, and
FrmSetEventHandler to set the event handler for
the form. In your form-specific event handler, you handle the
frmOpenEvent by calling
FrmDrawForm to draw the form.
Every modeless form in your application will require a form-specific
event handler, and a case statement in your application-wide event
handler, AppHandleEvent. You call
FrmSetEventHandler to associate that
form-specific event handler with the form. In order to display the
form, you’ll call FrmGotoForm to specify
that form’s form ID.