IMEMode, IMEStatus()
This pair is for writing
applications that deal with double-byte character sets, in
particular Japanese and Korean language applications. They let
you indicate how a special tool called an Input Method Editor
behaves when you enter a field or open a Browse or other editing
window.
Usage
|
oObject.IMEMode = 0 | 1
nIMEMode = oObject.IMEMode
nIMEStatus = IMEStatus( [ 0 | 1 ] )
|
IMEMode is a property of several controls that accept
text. IMEStatus() is a function that both tells you what's going
on and lets you change it. They're both ignored unless you're
running a Far Eastern version of Windows. In Far Eastern
languages, it takes two bytes to represent each character because
they're based on pictographs rather than sounds. Entering these
two-byte characters is a challenge—you certainly don't want a
keyboard with 65,000 items on it. The solution is a special
application that lets you choose the appropriate pictograph; such
an application is called an Input Method Editor (IME). IMEMode
indicates what should happen with the IME when the control gets
focus. You can set it to open the IME, close the IME or simply do
whatever the operating system is set for. IMEStatus() does two
jobs—it lets you turn the IME window on and off, and it tells you
the current IME setting. It seemed a little extreme to install a
Far Eastern version of Windows just to test this stuff, so all
we've done is make sure they don't crash in the U.S. version of
Windows.
Example
|
This.IMEMode = 1 && Have IME Window open
|
Back to Table of Contents
Copyright © 2002-2018 by Tamar E. Granor,
Ted Roche, Doug Hennig, and Della Martin. Click for license
.