Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 7 - Text Services Manager / Text Services Manager Reference
Text Service Component Routines / Responding to Events and Updating the Cursor and Menu


TextServiceEvent

The TextServiceEvent function routes an event to a specified text service component.

FUNCTION TextServiceEvent (ts: ComponentInstance; 
                           numOfEvents: Integer; 
                           VAR event: EventRecord): 
                           ComponentResult;
ts
A component instance created by a prior call to the Component Manager OpenComponent function.
numOfEvents
The number of events being passed.
event
The Event Manager event record (defined by the EventRecord data type) for the event being passed.
DESCRIPTION
If the text service component handles the event, it should return a nonzero value for componentResult and it should change the event to a null event. If it does not handle the event, it should return 0.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996