/* * Handles the About dialog. */ #include #include "flipMain.h" #include "resdefs.h" /* * Globals */ static UInt16 prevForm; static Boolean AboutEventHandler(EventPtr event); struct FormInfo AboutFormInfo = { EventStealer:NULL, EventHandler:AboutEventHandler, InitForm:NULL, DeinitForm:NULL, UpdateForm:NULL, }; /* Show the About dialog. */ extern void ShowAboutForm(void) { prevForm = FrmGetActiveFormID(); FrmPopupForm(AboutForm); } static Boolean AboutEventHandler(EventPtr event) { if (event->eType == ctlSelectEvent) { switch (event->data.ctlSelect.controlID) { case AboutFormOKButton: FrmReturnToForm(prevForm); return true; } } return false; }