background image
C H A P T E R 8
Text and Ink Input and Display
Using Text
Recognition menu. The view configuration is defined by the view flags and the
(optional) recognition configuration (
) frame of the view. The
Recognition menu is shown in Figure 8-3.
Figure 8-3
The Recognition menu
When the
input flags and the
frame of the view are set to
accept both text and ink, the Recognition menu choices control what kind of data is
inserted into the paragraph view.
Note that you can limit the choices that are available in the Recognition menu of
your application, though this is rarely necessary or advisable.
The Recognition menu, recognition view flags, and the recognition configuration
frame are described in "Recognition" (page 9-1).
Mixing Text and Ink in Views
Some views require textual input and cannot accept ink words. The recognition
controls are not used by these text-only views, in which writing is always
recognized and inserted as text. If the user drops an ink word into a text-only field,
the ink word is automatically recognized before control returns to the user.
Edit views can handle both ink words and sketch ink. If an edit view receives an
ink word, it either merges that word into an existing paragraph view or creates a
new view for the ink word. If an edit view receives sketch ink, it creates a polygon
view for the ink drawing.
You can also create fields that accepts only ink words. However, if the user types or
drops recognized text into such a field, the recognized text remains recognized text.
You can set a paragraph view to accept either text or ink input with the
following settings:
viewClass: clParagraphView,
viewFlags: vVisible + vClipping + vClickable +
vGesturesAllowed + vCharsAllowed +
recConfig: rcInkOrText
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна