SetDefaultIMEMode method
SetDefaultIMEMode(ime)
KClient_SetDefaultIMEMode
The KClient_SetDefaultIMEMode method allows KCML to specify the default IME mode for edit controls and editable cells on a grid. An individial edit can be programmed to enter a specified IME mode (for instance, a zip code or vehicle registration may follow a certain format) using the ImeMode property, or may default to an alphanumeric mode based on its type (such as Numeric or Date). For all other edits the default is not to change the IME mode, but by using this method a particular mode can be forced each time the edit gains focus.
For example, to default to Hiragana use:
OBJECT KClient = CREATE "ClientCOM","KClient" result = KClient.SetCharacterEncoding("SHIFT_JIS-2004","Meiryo") x.SetDefaultIMEMode(6)