Important: The information in this document is obsolete and should not be used for new development.
SystemEvent
TheWaitNextEvent
andGetNextEvent
functions call theSystemEvent
function. In most cases your application should not call theSystemEvent
function.The
SystemEvent
function determines if a specific event should be handled by the application or the Operating System.
FUNCTION SystemEvent (theEvent: EventRecord): Boolean;
theEvent
- The event record for the event.
DESCRIPTION
SystemEvent
returnsFALSE
as its function result if the event should be handled by the application; otherwise,SystemEvent
takes any appropriate actions and returnsTRUE
.For activate, update, mouse-up, and keyboard events (including keyboard equivalents of commands),
SystemEvent
checks to see whether the active window belongs to a desk accessory and whether that desk accessory can handle that type of event. If so,SystemEvent
sends the event to the desk accessory and returnsTRUE
. Otherwise,SystemEvent
returnsFALSE
.For mouse-down events and null events,
SystemEvent
returnsFALSE
.For disk-inserted events,
SystemEvent
attempts to mount the disk using thePBMountVol
function but returnsFALSE
so that the application can perform further processing if necessary.ASSEMBLY-LANGUAGE INFORMATION
If theSEvtEnb
global variable (a byte) contains 0,SystemEvent
always returnsFALSE
.SEE ALSO
See "The Event Record," beginning on page 2-79, for a description of the fields in the event record. For a description of thePBMountVol
function, see the chapter "File Manager" in Inside Macintosh: Files.