Application Layer

newtStatusBar

This proto displays a status bar (with a close box). It also handles some user interface niceties: it automatically adjusts the space between buttons to perfection, and it adjusts the width of text buttons to fit the text within them. There are two required slots:

menuLeftButtons
An array of buttons displayed on the left of the status bar. These are ordered from left to right.

menuRightButtons
An array of buttons displayed on the right. These are ordered from right to left.

A particular layout can override the menuLeftButtons or menuRightButtons slot in order to have layout-specific buttons. In order for this to work, the newtStatusBar must be named and declared to the base template. In addition, the statusBarSlot of the newtApplication must be set to the declared name.


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

Last modified: 1 DEC 1996