Debug

Protos Containing Text Slots

A number of protos contain text slots. Some of the protos that use the text slot include the following:

protoLabelInputLine
The text in the input field.

protoRichInputLine
The text in the input field.

newtLabelDateInputLine
The text in the input field.

protoInputLine
The text in the input field.

protoTextButton
The name of the button.

protoLabelPicker
The label of the picker.

protoCheckBox
The name of the checkbox.

protoRadioButton
The name of the radio button.

protoStaticText
The text shown.

protoGlance
The text shown when tapped.

The first four, protoLabelInputLine, protoRichInputLine, newtLabelDateInputLine, and protoInputLine, are of further interest, as you can also search for a view containing user-entered text. For instance, consider an application with a protoInputLine in which the user has entered the string "Hello world" (see FIGURE 8.7). You can find that view using

theInputLine := Debug("Hello world");

FIGURE 8.7 : A protoInputLine containing the string "Hello world".


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996