Re: WIDGEt_CONTROL, /TIMER - HOW? [message #2404] |
Wed, 06 July 1994 17:03 |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <1994Jul5.123016.26019@newsserver.rrzn.uni-hannover.de> knipp@ipi.uni-hannover.de writes:
>
>
>
>
> Hi
>
> I fail to use the WIDGET_CONTROL, timer=x - feature.
>
> What's wrong with the follwing code ?
>
> (I expect to get the actual time every second, but it happens
> just once).
Your error is that you assumed that WIDGET_CONTROL, TIMER=1
would call your event routine peridically at once per second. This is
not the case. It only calls it once. If you want your event routine to
be called again, you need to also put the WIDGET_CONTROL, TIMER=1
statement inside your event routine. Make sure you only call it when you
get a timer event, not on mouse events!
--
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave.
|
|
|