Back to Text Field Objects
Up to Table of Contents

Timer Objects

Timers allow you to use time to control objects in your application. For example, a Timer can trigger an alarm every minute, causing another page to display. Timers also play a key role in setting up cycling graphic animations.

Use the AlarmInterval property to set how long (in milliseconds) the Alarm object waits before it triggers an Alarm event. The RepeatCount property determines how many times the Alarm goes off.

By default, a Timer's AutoStart property is set to True which causes the object to start going off as soon as it is created at runtime. If you set AutoStart to False, you need to set the Start() method to start the Timer object some time after it is created. The Stop() method stops a Timer object and sets the RepeatCount property to 0. The Pause() method stops a Timer object and keeps the RepeatCount property at its current number. The Resume() method restarts a paused Timer object from where the RepeatCount property is at its current, paused number.

Use the Timer object tool to draw a Timer. The tool appears as follows:

Although a Timer object appears as a clock in the Page Layout Editor, it cannot be seen at runtime.

Note: For a lesson on how to set up a Timer object, see the Graphic Lesson section on "Cycling Graphics."

Timer Object Properties, Methods, and Events

Timer objects support the following properties, methods, and events:

Properties Methods Events
AlarmInterval Pause() Alarm
AutoStart Resume() Complete
Enabled Start() Create
Name Stop()
 
RepeatCount
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Back to Text Field Objects
Up to Table of Contents