home *** CD-ROM | disk | FTP | other *** search
- /* Cell Proj 1.0 */
-
- #include "Cell_Proto.h"
- #include "Cell_Definitions.h"
- #include "Cell_Variables.h"
-
- DoPreCheck()
- {
- char theChar;
-
- switch ( gTheEvent.what )
- {
- case autoKey:
- case keyDown:
- theChar = gTheEvent.message & charCodeMask;
- if (( gTheEvent.modifiers & cmdKey ) != 0 )
- HandleMenuChoice( MenuKey( theChar ));
- break;
- case activateEvt:
- if ( (WindowPtr)gTheEvent.message == gCellInfoDialog )
- {
- if (( gTheEvent.modifiers & activeFlag ) != 0 )
- {
- SetPort( gCellInfoDialog );
- SelectWindow( gCellInfoDialog );
- }
- else
- {
- SetPort( gCellInfoDialog );
- }
- }
- break;
- case updateEvt:
- if ( (WindowPtr)gTheEvent.message == gCellInfoDialog )
- {
- BeginUpdate( gCellInfoDialog );
- DrawDialog( gCellInfoDialog );
- EndUpdate( gCellInfoDialog );
- }
- break;
- }
- }
-
- HandleDialog()
- {
- short itemHit;
- DialogPtr theDialog;
-
- DialogSelect( &gTheEvent, &theDialog, &itemHit );
- }