LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
hours = 0
minutes = 0
seconds = 0
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_timer:
seconds = seconds + 1
IF seconds > 59 THEN DO
minutes = minutes + 1
seconds = 0
END
IF minutes > 59 THEN DO
hours = hours + 1
minutes = 0
END
guiaddctltext("SecDisplay", "Time lapsed =" hours || ":" || minutes || ":" || seconds)
RETURN "" |