RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

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

  • Message Codes
  • Message_AlarmGoneOff
  • Wimp_Poll
Revised on June 28, 2009 13:47:14 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: Message_SetAlarm 0, Message_SetAlarm 1, Message_SetAlarm 2, Message_AlarmGoneOff, Message Codes

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys