User's Guide
You can specify whether you want a Text part, or other part that accepts
user input, to only accept single-byte or double-byte characters. Open
the settings for the Window part and look at the following properties:
- inputMethodEditor
- Specifies whether you use an input method editor (IME) for input on a
double-byte platform. The default of true specifies that an
IME is used for input.
- inputType
- Specifies the type of input on an input method editor on a double-byte
platform. If you are working on a single-byte platform, you might use
XmSBCSALPHANUMERIC, which allows for entry of single-byte letters
or numbers. On a double-byte platform, you might use
XmDBCSALPHANUMERIC, which allows for entry of double-byte letters
or numbers.
- romanInput
- Specifies whether you use Roman input in an input method editor on a
double-byte platform. The default of true specifies that
Roman input is used.
You can require all input fields in a window to accept a certain of input
by setting values for these properties. Or, you can require entry of a
certain type of input on a per field basis by connecting the
gettingFocus event of the data entry part to a script such as the
following:
focusText
"Assumes you want the Text1 part to require double-byte phonetic data entry"
(self subpartNamed: 'Text1') primaryWidget shell
inputMethodEditor: true;
inputType: XmDBCSPHONETIC;
romanInput: true.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]