background image
C H A P T E R 4
NewtApp Applications
About the NewtApp Framework
4-7
Figure 4-3
Calls is an example of a page-based application
The overview protos are also layouts; they include the
newtOverLayout
and
newtRollOverLayout
protos.
The NewtApp framework code that governs soups, scrolling, and all the standard
view functionality, is implemented in the layout protos. A main (default) view
layout and an overview layout must be declared in the
allLayouts
slot of the
newtApplication
base view. See "newtApplication" (page 3-8) in Newton
Programmer's Reference for details.
Your layout can also control which buttons show on the status bar; you can set the
menuLeftButtons
and
menuRightButtons
slots of the layout proto, along
with the
statusBarSlot
of the base view (
newtApplication
proto). This
control becomes important when more than one entry is shown on the screen, as in
a roll-style application. For example, when multiple entries are showing on one
screen, the Action and Filing buttons would not be on the status bar. Instead, they
would be on the header of each entry, so the entry on which to perform an action is
unambiguous.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна