O'Reilly logo

Palm OS Programming, 2nd Edition by Neil Rhodes, Julie McKeehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modeless Forms

You’ll normally call FrmGotoForm to display a modeless form. It will then post:

  • A frmCloseEvent for the active form (if any; as your program begins, there is no active form)

  • A frmLoadEvent and a frmOpenEvent for 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required