RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: Message_AlarmSet

Programmer’s Reference Manuals
» Part 7 – The Desktop
» The Window Manager
» Messages
» Message Codes
» Message_AlarmSet

Message_AlarmSet

(Code &500)

Message Block
+20 0 Set alarm (local time)
1 Set alarm (UTC)
2 Cancel alarm
+24 Depends on reason code at +20

Use

This message can be sent used to set/cancel alarms.

Notes

If the message is sent recorded, then the application !Alarm acknowledges with 0 if successful or a null terminated error string. (Presumably this is in the error block at +20, but unsure. If it is, then the message block format is inconsistent, depending on whether it is to or from the application).

When setting an alarm using local time, it is possible to add out-of-range alarms to the database, which !Alarm will fault on redraw (but not fault on save).

When the task goes off !Alarm broadcasts Message_AlarmGoneOff, which your application should acknowledge.


See also

   .