background image
C H A P T E R 8
Text and Ink Input and Display
8-26
Using Text
Setting the Caret Insertion Point
8
When you application starts up, you might want to establish the insertion point for
keyboard entry in caret insertion writing mode. There are three functions that you
can use for this purpose:
to establish the insertion point in an input field, use the
SetKeyView
function,
which is described in "SetKeyView" (page 7-43) in Newton Programmer's
Reference
.
to establish the insertion point in an edit view, use the
PositionCaret
function, which is described in "PositionCaret" (page 7-49) in Newton
Programmer's Reference
.
to establish the insertion point in an edit view or paragraph, you can use the
SetCaretInfo
function, which is described in "SetCaretInfo" (page 7-50) in
Newton Programmer's Reference.
Using Keyboards
8
You can provide the user with on-screen keyboard input in your applications using
the built-in keyboard views. You can also define new keyboard views and register
them with the system, which will activate caret input when these views are opened.
Keyboard Views
8
There are four different floating keyboards built into the system root view. Each of
the built-in keyboards can be accessed as a child of the root with a symbol.
To use the full alphanumeric keyboard, which is shown in Figure 8-6, use the
symbol
'alphaKeyboard
.
Figure 8-6
The built-in alphanumeric keyboard
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна