background image
C H A P T E R 1 7
Additional System Services
17-10
Using Additional System Services
Note
Do not install idler objects having idle time intervals of
less than 100 milliseconds.
The following example prints a random five-letter word in the Inspector until the
view is closed:
myButton := {
_proto : protoTextButton,
ButtonClickScript : func() :SetUpIdle(100);//start the
//cycle
text : "Print silly words",
ViewIdleScript: func()
begin
print( GetRandomWord (5,5) );
//this function's return value
//determines when it is called next
2 * 1000; //come back in 2 secs.
end;
...
}
Using Change Notification
17
For a complete description of these services, see the appropriate chapter:
For information on soup change notification, see Chapter 11, "Data Storage
and Retrieval."
For information on folder change notification, see Chapter 15, "Filing."
For information on user configuration change notification, see Chapter 19,
"Built-in Applications and System Data."
Using Online Help
17
You create online help by creating a help book using Newton Book Maker. For
information on how to do this see version 2.0 of the Book Maker User's Guide. The
help book can then be displayed from the information ("i") button. This button is
based on
protoInfoButton
, or
newtInfoButton
if you are working within
the NewtApp framework. For a description of the
protoInfoButton
proto, see
Chapter 7, "Controls and Other Protos." For a description of the
newtInfoButton
proto, see Chapter 4, "NewtApp Applications."
Help can also be displayed from the Intelligent Assistant. For information about
this, see Chapter 18, "Intelligent Assistant."
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна