www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
Forums now closed. This is an HTML only record of the content.
HTML version of Forum generated Thursday 24th May 2018

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 12:50 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
Is the source code for the !Alarm application available .....
..... and if so, where?

_________________
John


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 11:18 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
The source for some versions of !Alarm will (probably) be available from RISCOS Open. For the versions bundled with RISC OS 4/6 you would need to be registered with RISCOS Ltd as being on the RISC OS development team.


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 5:21 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
OK. Thanks.

Perhaps it might be enough if somebody with access to the code (for RiscOS 4.2) can tell me what SWI it uses to get the its time .....

..... and what poll SWI it uses to keep the display updating every second.

_________________
John


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Thu Oct 21, 2010 10:48 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
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.


Top
 Profile  
 
 
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

   
cron
Forums originally Powered by phpBB © 2007 phpBB Group. Contents © 3QD Developments Ltd 2018 version no. 1.07