Carbon


SetTextServiceLanguage

Header: TextServices.h Carbon status: Supported

Changes the current input script and language.

OSErr SetTextServiceLanguage (
    ScriptLanguageRecord *slRecordPtr
);
Parameter descriptions
slRecordPtr

A pointer to a script-language structure for the current text service component.

function result

A result code.

DISCUSSION

The operating system calls this Text Services Manager function when the user switches the keyboard script, so that the Text Services Manager can synchronize the input method with the current keyboard script.

You can use the text service component function GetScriptLanguageSupport to determine which additional scripts and languages a text service component supports.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)