Apple Newton Utilities Betriebsanweisung Seite 92

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 942
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 91
CHAPTER 3
Views
3-8 About Views
As the grid lines are innitely thin, so a point is innitely small. Pixels, by contrast,
lie between the lines of the coordinate grid, not at their intersections.
This relationship gives them a denite physical extent, so that they can be seen on
the screen.
Dening View Characteristics 3
A template that describes a view is stored as a frame that has slots for view
characteristics. Here is a NewtonScript example of a template that describes a view:
{viewClass: clView,
viewBounds: RelBounds( 20, 50, 94, 142 ),
viewFlags: vNoFlags,
viewFormat:vfFillWhite+vfFrameBlack+vfPen(1),
viewJustify: vjCenterH,
viewFont: simpleFont10,
declareSelf: 'base,
debug: "dialer",
};
Briey, the syntax for dening a frame is:
{slotName: slotValue,
slotName: slotValue,
...};
where slotName is the name of a slot, and slotValue is the value of a slot. For more
details on NewtonScript syntax, refer to The NewtonScript Programming Language.
Frames serving as view templates have slots that dene the following kinds of view
characteristics:
Class The
viewClass slot denes the class of graphic object from
which the view is constructed.
Behavior The
viewFlags slot denes other primary view behaviors
and controls recognition behavior.
Location, size, and alignment
The
viewBounds and viewJustify slots dene the
location, size, and alignment of the view and its contents.
Appearance The
viewFormat slot denes the frame and ll
characteristics. The
viewFillPattern and
viewFramePattern slots control custom patterns.
Transfer modes used in drawing the view are controlled
by the
viewTransferMode slot.
Seitenansicht 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 941 942

Kommentare zu diesen Handbüchern

Keine Kommentare