Other View Settings

Miscellaneous Settings

There are a number of other slots you can add to a template to affect how the view is displayed. Here is a brief description of each one:

viewOriginX
Sets the amount of horizontal offset used when displaying the contents of a view. When set to 0, the contents of a view are displayed starting at the far left.

viewOriginY
Sets the amount of vertical offset used when displaying the contents of a view.

viewFillPattern
Sets a custom fill pattern for a view. The fill pattern is a 64-bit (8x8) binary object.

viewFramePattern
Sets a custom frame pattern for a view. The fill pattern is a 64-bit (8x8) binary object.

viewTransferMode
Specifies the transfer mode that is used for drawing in the view. The possible choices are modeCopy, modeOr, modeXor, modeBic, modeNotCopy, modeNotOr, modeNotXor, modeNotCopy, and modeMask.

declareSelf
The value of this slot is a symbol (commonly the symbol 'base). This symbol will be created as a slot in the view of this template at run time and will point at the view itself.


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

Last modified: 1 DEC 1996