Skip to Main Content
Palm OS Programming, 2nd Edition
book

Palm OS Programming, 2nd Edition

by Julie McKeehan, Neil Rhodes
October 2001
Intermediate to advanced content levelIntermediate to advanced
704 pages
19h 33m
English
O'Reilly Media, Inc.
Content preview from Palm OS Programming, 2nd Edition

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Palm OS Network Programming

Palm OS Network Programming

Greg Winton
Palm Programming: The Developer's Guide

Palm Programming: The Developer's Guide

Neil Rhodes, Julie McKeehan

Publisher Resources

ISBN: 1565928563Errata Page