Apple Newton Utilities Uživatelská příručka Strana 274

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 942
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 273
CHAPTER 7
Controls and Other Protos
7-14 Time Protos
ChangedSlider: func()
begin
SetVolume(viewValue);
:SysBeep();
end,
...}
The example above initializes the slider gauge to indicate the current system
volume, which it retrieves from the user conguration that is maintained by the
Newton System Software. The range of allowable volume values is from
0
(the default for
minValue) to 4.
Whenever the user moves the slider and lifts the pen, the
viewValue slot is
updated and the
ChangedSlider method is called. In the example, the
ChangedSlider method resets the system volume to the new value chosen by
the user and sounds a beep to provide the user with audible feedback.
For more information on the
protoSlider and the ChangedSlider method,
see “protoSlider” (page 6-33) in Newton Programmers Reference.
Time Protos 7
You can use the time protos to allow the user to set time and date values. There are
four time protos:
The protoDigitalClock time proto displays a digital clock with which the
user can set a time value. For more information about the slots and methods for
this proto, see “protoDigitalClock” (page 6-38) in Newton Programmers
Reference. Figure 7-21 shows an example of a
protoDigitalClock view.
Figure 7-21 A protoDigitalClock view
The protoNewSetClock time proto displays an analog clock with which the
user can set a time value. For more information about the slots and methods for
this proto, see “protoNewSetClock” (page 6-40) in Newton Programmers
Reference. Figure 7-22 shows an example of a
protoNewSetClock view.
Zobrazit stránku 273
1 2 ... 269 270 271 272 273 274 275 276 277 278 279 ... 941 942

Komentáře k této Příručce

Žádné komentáře