On Oct 31, 2007, at 1:22 PM, Keith DeLong wrote:
> I'm looking for anyone with expertise in timers. The Online
> reference is
> inaccurate/incomplete and the Language Reference is unclear to me:
>
> What's the proper way to change the period of a running timer?
>
> If I change the period while a timer is running, does it restart
> the period
> from the time of the change or simply adjust the period based on
> when the
> period was originally set? I seem to be seeing differences on how this
> occurs between Windows and Mac.
>
> Is timer.Enabled = false and timer.Mode = timer.ModeOff synonymous?
>
> Are there any differences between timer.reset and time.enabled = true?
>
> Any clarification on the nuances is appreciated...
The Enabled property is, I believe, an artifact of the days when
Timer inherited from Control. Apparently it allows you to turn a
Timer off or on, but I've never used it.
Timer behavior is platform-dependent. My experience is with Mac OS,
where they work quite well, and Linux, where they have provided a
steady source of pain. If you need to change the period of a Timer,
probably your best bet is to set its Mode to ModeOff, change the
period, then reset its Mode.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|