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
| noErr | No error |
| paramErr | The script does not match the language |
| tsmCantOpenComponentErr | Cannot open default input of the script |