background image
C H A P T E R 7
Controls and Other Protos
7-2
Scroller Protos
four new date and time protos:
protoDigitalClock
,
protoSetClock,
protoNewSetClock
, and
protoAMPMCluster
two special view protos:
protoDragger
and
protoDragNGo
Scroller Protos
7
Scrollers allow the user to move vertically or horizontally through a display that is
bigger than the view. The Newton System Software provides a number of scrollers
to allow users to scroll their views.
All scroller protos are implemented in the same way; that is, they use the same
methods and slots. These scrollers are not linked or related to the scroll arrows on
the built-in button bar. For individual descriptions of the scroller protos, see
"Scroller Protos" (page 7-2) in Newton Programmer's Reference. This section
describes how to implement scrollers in your applications.
The scroller protos do not perform the actual scrolling of data in a view; they
simply display and maintain the arrows as the user taps them. To scroll data in a
view, you can use the following protos in your applications:
The
protoHorizontal2DScroller
is centered at the bottom of a view and
provides both horizontal and vertical scroll arrows. For more information about
the slots and methods for this scroller, see "protoHorizontal2DScroller"
(page 6-2) in Newton Programmer's Reference. Figure 7-1 shows an example
of a
protoHorizontal2DScroller
view.
Figure 7-1
A
protoHorizontal2DScroller
view
The
protoLeftRightScroller
is centered at the bottom of a view and
provides horizontal scroll arrows. For more information about the slots and
methods for this scroller, see "protoLeftRightScroller" (page 6-5) in Newton
Programmer's Reference
. Figure 7-2 shows an example of a
protoLeftRightScroller
view.
Figure 7-2
A
protoLeftRightScroller
view
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна