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 Services Manager Routines for Client Applications / Associating Scripts and Languages With Components


SetTextServiceLanguage

The SetTextServiceLanguage function changes the current input script
and language.

FUNCTION SetTextServiceLanguage (VAR slRecord: 
                                 ScriptLanguageRecord): OSErr;
slRecord
A script-language record for the current text service component.
DESCRIPTION
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.

RESULT CODES
noErrNo error
paramErrThe script does not match the language
tsmCantOpenComponentErrCannot open default input of the script

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996