Asian Application Developer's Guide

XIM

Setting Status and Preedit Styles

OpenWindows resource entries in the .OWdefaults resource file set the status area style and preedit area style as described in the following sections.

Default OpenWindows settings are onTheSpot and imDisplaysInClient.

Status Styles

The Status Area displays which input mode is in effect in the IM server window. You can specify the mode by adding one of the following lines to your .OWdefaults resource file:

OpenWindows.StatusStyle.locale: clientDisplays
OpenWindows.StatusStyle.locale: imDisplaysInClient
OpenWindows.StatusStyle.locale: imDisplaysInRoot
OpenWindows.StatusStyle.locale: none

Preedit Styles

Many languages require multiple key strokes to form a single display character, syllable, symbol, ideogram, or other item. The status area needs to display input keystrokes for these languages. For the Asian OpenWindows environment, this intermediate display area is called the preedit area. The preedit area displays intermediate formations of input keystrokes while they are held in a buffer before being committed, that is, before being sent to the insertion point in the text stream to the next program operation or the application.

The four available styles of preedit area positioning are discussed in the following sections. You can set the style by placing one of the following lines in the .OWdefaults resource file:

OpenWindows.PreeditStyle.locale: onTheSpot
OpenWindows.PreeditStyle.locale: overTheSpot
OpenWindows.PreeditStyle.locale: rootWindow
OpenWindows.PreeditStyle.locale: none

The preedit areas work the same internally; only their relation to the rest of the display differs.