Apple Newton Utilities Uživatelská příručka Strana 93

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 942
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 92
CHAPTER 3
Views
About Views 3-9
Opening and closing animation effects
The
viewEffect slot denes an animation to be performed
when the view is displayed or hidden.
Other attributes Some other slots dene view characteristics such as font,
copy protection, and so on.
Inheritance links The
_proto, _parent, viewChildren, and
stepChildren slots contain links to a views template,
parent view, and child views.
These different categories of view characteristics are described in the following
sections.
Class 3
The viewClass slot denes the view class. This information is used by the
system when creating a view from its template. The view class describes the type
of graphic object to be used to display the data described in the template. The view
classes built into the system serve as the primitive building blocks from which all
visible objects are constructed. The view classes are listed and described in Table 2-2
(page 2-4) in the Newton Programmers Reference.
Behavior 3
The viewFlags slot denes behavioral attributes of a view other than those that
are derived from the view class. Each attribute is represented by a constant dened
as a bit ag. Multiple attributes are specied by adding them together, like this:
vVisible+vFramed
Note that in the NTK viewFlags editor, multiple attributes are specied simply by
checking the appropriate boxes.
Some of the viewFlags constants are listed and described in Table 2-4 (page 2-11)
in the Newton Programmers Reference. There are also several additional constants
you can specify in the
viewFlags slot that control what kinds of pen input (taps,
strokes, words, letters, numbers, and so on) are recognized and handled by the view.
These other constants are described in “Recognition” (page 9-1).
View behavior is also controlled through methods in the view that handle system
messages. As an application executes, its views receive messages from the system,
triggered by various events, usually the result of a user action. Views can handle
system messages by having methods that are named after the messages. You
control the behavior of views by providing such methods and including code that
operates on the receiving view or other views.
For a detailed description of the messages that views can receive, and information
on how to handle them, see “Application-Dened Methods” (page 3-26).
Zobrazit stránku 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 941 942

Komentáře k této Příručce

Žádné komentáře