Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 329

Advertising
background image

C H A P T E R 8

Text and Ink Input and Display

Using Text

8-37

Each view path must specify the actual view that accepts the input. An example of
a suitable path is shown here:

'myInputLine, 'myLabelInputLine.entryLine

When the user tabs through this list, it loops from end to beginning and, with
reverse-tabbing, from beginning to end.

You can use the

_tabParent

slot to inform the system that you want tabbing in a

view restricted to that view. Each view in which

_tabPare

nt is non-

nil

defines a

tabbing context. This makes it possible to have several views on the screen at once
with independent tabbing within each view. In this case, the user must tap in
another view to access the tabbing order in that view.

For example, in Figure 8-15, there are two independent tabbing orders. The first
consists of the input lines that contain the text “One,” “Two,” “Three,” and “Four”.
The second tabbing order consists of the input lines that contain the text “Five”
and “Six.”

Figure 8-15

Independent tabbing orders within a parent view

The user taps in any of the top four slots; thereafter, pressing the tab key on a keypad
or external keyboard moves among the four slots in that tabbing order. If the user
taps one of the bottom two slots, the tab key jumps between those two slots.

The slots

_tabParent

and

_tabChildren

can coexist in a view, but the

_tabChildren

slot takes precedence in specifying the next key view. If the

current view does not define the

_tabParent

slot, the search moves upward from

the current view until one of the following conditions is met:

a view descended from

protoInputLine

with a

_tabParent

slot is found.

a

protofloater

view is found

Advertising