background image
C H A P T E R 8
Text and Ink Input and Display
Using Text
8-29
Figure 8-10
An example of a
protoKeyboard
This proto enables the caret (if it is not already visible) in the key-receiving view
while the keyboard is displayed. Characters corresponding to tapped keys are
inserted in the key-receiving view at the insertion bar location. The caret is disabled
when the keyboard view is closed.
This proto is used in conjunction with
protoKeypad
to implement a floating
keyboard. The
protoKeyboard
proto defines the parent view, and
protoKeypad
is a child view that defines the key characteristics.
protoKeypad
8
This proto defines key characteristics for a keyboard view (
clKeyboardView
class). It also contains functionality that automatically registers an open keyboard
view with the system. If you want to get this behavior in your custom keyboard,
use
protoKeypad
.
You use this proto along with
protoKeyboard
to implement a floating keyboard.
The view using the
protoKeypad
proto should be a child of the view using the
protoKeyboard
proto.
protoKeyboardButton
8
This proto is used to include the keyboard button in a view. This is the same keyboard
button shown on the status bar in the notepad. Tapping the button causes the on-
screen keyboard to appear. If the keyboard is already displayed, a picker listing
available keyboard types is displayed. The user can tap one to open that keyboard.
Figure 8-11 shows an example of the keyboard button.
Figure 8-11
The keyboard button
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна