08-27-2006, 06:40 AM
str s.format("%i:%i" t/60 t%60)
out s
here t is counter variable (number of seconds).
If the dialog is running, get its handle and use it with SetTimer.
int hDlg=win("dialog title")
SetTimer hDlg timerid timerperiod 0
If dialog is not running, you cannot use SetTimer. Instead you could use rep or tim.
out s
here t is counter variable (number of seconds).
Quote:How 2 make the Timer in a dialog Start and restart from functions instead of the dialog?
If the dialog is running, get its handle and use it with SetTimer.
int hDlg=win("dialog title")
SetTimer hDlg timerid timerperiod 0
If dialog is not running, you cannot use SetTimer. Instead you could use rep or tim.