JVCL Help:TJvTimerList

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvTimerList
run\JvTimerList.pas


Summary

Maintains a list of timers.

run\JvTimerList.pas


Pascal

 run\JvTimerList.pas
 TJvTimerList = class(TComponent);


Description

  1. JVCLInfo

The TJvTimerList maintains a list of TJvTimerEvent objects, that each provide all the properties of the standard TTimer component. By using a TJvTimerList to maintain timers you have the additional benefit of using only 1 windows timer for up to 32767 timing events. The practical maximum number of timing events depends on how long it takes your application to handle each timer execution.
Windows (system) timers are a scarce system resource. Using more system timers than necessary can impact performance. If a (system) timer is not available when a program needs one, it can either terminate gracefully or it can terminate in a manner that leaves Windows in an unstable state. You can reduce the chances of running out of timers by using a TJvTimerList rather than multiple timers.
TJvTimerList uses the concept of a timer events to perform the same function as the TTimer's OnTimer event. After adding a TJvTimerList compone t to your form, use the component editor to create events at design-time, or call Add method at run-time to create timer events dynamically. Events can repeat until they are canceled or they can be fired only a specific number of times and then be automatically removed (accordingly Cycled property value).

run\JvTimerList.pas


See Also

TJvTimerEvent

run\JvTimerList.pas


About

Navigation

run\JvTimerList.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page