RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Wimp_SendMessage

WindowManager
» SWI Calls
» Wimp_SendMessage

Wimp_SendMessage

(SWI &400E7)
Entry
R0 Reason Code
R1 Pointer to message block
R2 Destination task handle, or
Destination window handle, or
– 2 for creator of icon handle in R3, or
0 to broadcast to all (including self)
R3 Icon handle (if R2 = -2)
Exit
R0 Corrupt
R2 Handle of destination task (if not broadcast)
Block Updated

Use

The purpose of this call is to send a message either to a particular task or to all tasks.

Notes

All messages are passed around the Wimp using this call.

Tasks are notified of incoming messages via Wimp_Poll.

The type of message to be sent is dependant on the reason code value.

The message block in R1 should be in the format specified by the particular Reason Code being used in R0.

When replaying to a message, R2 should be the task handle of the original message.

Reason code values of 1 to 12 can be used to inform another task about a window, mouse, icon etc…

Reason codes of 17 to 19 are user messages and are the most common type of message to send.

  • User_Message (reason code 17) is used to inform a task of something.
  • User_Message_Recorded (reason code 18) is used to inform a task of something but requires a message of acknowledgement in return. If no acknowledged message is received, the Wimp will send the message back to the originator (unless the message’s type is not in the list of message types that the application accepts).
  • User_Message_Acknowledge is reason code 19 is used to reply back to a task that sent a User_Message_Recorded message.

See also

  • Reason Codes
  • User_Message
  • User_Message_Recorded
  • User_Message_Acknowledge
  • Wimp_Poll
Revised on October 12, 2021 18:19:44 by André Timmermans (100)? (87.64.159.36)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager SWI Calls, WindowManager Applications And Documents, User_Message_Acknowledge, User_Message_Recorded, Message Codes, WindowManager Messages Overview, Message_PreQuit, Message_DataLoadAck, Message_DataOpen, Message_RAMFetch, Message_DataSaved, Message_ColourPickerColourChoice, Message_RAMTransmit, FilerAction_SendSelectedFile, Message_PlugIn_Focus

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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