Apple Newton Utilities User's Guide Page 104

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 103
CHAPTER 3
Views
3-20 About Views
viewOriginX and viewOriginY Slots 3
These slots can be read but not written or set. Instead, use Setorigin to set the
origin offset for a view. For more information, see “Scrolling View Contents”
(page 3-41).
If you use these slots to specify an offset, the point you specify becomes the new
origin. Child views are drawn offset by this amount. This is useful for displaying
different portions of a view whose content area is larger than its visible area.
Appearance 3
The viewFormat slot denes view attributes such as its ll pattern, frame pattern,
frame type, and so on. Custom ll and frame patterns are dened using the
viewFillPattern and viewFramePattern slots.
The viewTransferMode slot controls the appearance of the view when it is drawn
on the screen; that is, how the bits being drawn interact with bits on the screen.
View Format 3
The viewFormat slot denes visible attributes of a view such as its ll pattern,
frame type, and so on. In the
viewFormat slot, you can specify one or more
format attributes, which are represented by constants dened as bit ags. You can
specify one format attribute from each of the following groups:
view ll pattern
view frame pattern
view frame thickness
view frame roundness
view frame inset (this is the white space between the view bounds and view frame)
view shadow style
view line style (these are solid or dotted lines drawn in the view to make it look
like lined paper)
Multiple attributes are specied by adding them together like this:
vfFillWhite+vfFrameBlack+vfPen(2)+vfLinesGray
Note that the frame of a view is drawn just outside of the view bounding box, not
within it.
The ll for a view is drawn before the view contents and the frame is drawn after
the contents.
Page view 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 941 942

Comments to this Manuals

No comments