Parent Justification

Uses of Parent Justification by Protos

Some system protos have specialized parent justification so they will draw out in a particular location. For example, look at the settings of protoLargeCloseBox:

viewJustification
parentRelativeRight
parentRelativeBottom

viewBounds
left: -18, right: -5, top: -18, bottom: -5

Thus, a protoLargeCloseBox is 13 pixels square and is located 5 pixels from the lower right edge of its parent (see FIGURE 5.22).

FIGURE 5.22 : A close box uses parent justification to nestle in its parent's bottom right corner.


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

Last modified: 1 DEC 1996