The display being updated every second will be done with "Wimp_PollIdle". In BASIC I would expect something like:
SYS "Wimp_PollIdle",0,wimp_buffer%,polltime% TO r%
Where:
wimp_buffer% is our data block for receiving commands though the WIMP polltime% is the time in centiseconds before we need to be polled again r% is the action returned e.g. 1=Redraw Window 2=Open Window 3=Close window etc
There are several ways of reading the time on RISC OS machines. At it's most simple the BASIC reserved variable TIME$ (e.g. PRINT TIME$) will hold the correct time for when the variable is used.
|