
viewFlags
Flags That Affect the Behavior of the View
vVisible
- When this is set, the view is visible when the application is run. If it is not set, the view is invisible and can only be opened by sending the view an
Open
or Show
message (note that the view will need to be declared to its parent before it can receive any messages).
vApplication
- When this is set, the view is flagged as able to respond to taps on the scroll up and down arrows and the overview button. If you create a template based upon a
protoApp
or newtApp
, this flag is set automatically.
vReadOnly
- When this is set, the view can't be changed by the user. For example,
protoStaticText
sets this flag automatically so the user can't change the text.
vClipping
- If this is set, everything drawn in this view or a child view is clipped to the bounds of this view. This option defaults to off to speed drawing on the Newton. Unless you specifically need a view clipped, you should not set this.
vClickable
- This must be set for a view to explicitly handle user taps. When the user taps on the view, it is sent the
viewClickScript
(as described in "viewClickScript(unit)" on page 152). This must also be set for pen input in the view.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996