Important: The information in this document is obsolete and should not be used for new development.
TextServiceEvent
TheTextServiceEvent
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 forcomponentResult
and it should change the event to a null event. If it does not handle the event, it should return 0.