Interactions between Parent and Sibling Justification

Justification of the Application Base View

Since the Newton is a family of products with a variety of screen sizes, it is quite common to match the size of the application base view to the size of the Newton screen--larger for a larger screen and smaller for a smaller screen. You would also want all of the child views of the base view to lay themselves out differently, becoming smaller or larger as necessary. You do this using a viewJustify slot in your application base template.

Most applications have some minimum width or height necessary to operate, so it is common to also have code which checks to see that minimum has been achieved (that the application isn't running on a wristwatch-size Newton screen). In addition, applications commonly have some maximum size; code takes care of this as well. See "Set Minimum and Maximum Sizes for an Application" on page 159 for details.


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

Last modified: 1 DEC 1996