Silverfrost Logo About Us | Contact Us
 

%dl - Timer

Purpose

To set a call-back function to be called at regular intervals via a timer.

Syntax

winio@('%dl',interval,cb_func)
double precision interval     (input)
external cb_func

Description

interval is the minimum time in seconds between calls. A call is made at idle time (e.g. awaiting input) and when yield_program_control@ is called. A given window cannot have more than one timer.

Notes

The timer delay used with %dl can be changed dynamically using the following routine.

SUBROUTINE CHANGE_TIMER_INTERVAL@( HANDLE, INTERVAL )
INTEGER HANDLE
DOUBLE PRECISION INTERVAL

HANDLE is the handle of the parent window (obtained using %hw). INTERVAL is the replacement for the value used with %dl.

Example

winio@('%dl', 2.0D0, cb_func)

 

 

 

Copyright © 1999-2017 Silverfrost Limited