C H A P T E R 1 0
Recognition: Advanced Topics
Using Advanced Topics in Recognition
Using protoRecToggle Views
view changes the recognition behavior of views by overriding
values inherited from the system's user configuration data. Note that values in the
frame override settings specified by the
view is usually used with
views that set the
views that support ink text.
Take the following steps to use a
view in NTK. If your application has a status bar, you
need to provide the
view as a child of the status bar.
Configure input views appropriately to support the choices your
view provides. To do so, you need to provide an appropriate
or set the
mask for each view that is to be controlled by
slot at a place in the
chain that allows
each view controlled by the
view to inherit this slot.
You can take the following optional steps to customize your
appearance or behavior:
slot specifying the items to be included in the
method in the
chain of any
view controlled by the
The next several sections describes these steps in detail.
Creating the recToggle View
To create a
view, you'll first need to sketch it out in the NTK layout
editor. When you do so, you'll notice that regardless of where you draw it, the view
will appear in the upper-left corner of the layout. This is because the
view is intended to be displayed as a child of the status bar in applications that
When a recToggle view is a child of your application's status bar, the view system
view on the status bar automatically, ignoring the value
slot in the process. When the
view is not a child of the status bar, you must create a
slot for it and set appropriate values for this slot.