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

Wimp_ReportError

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_ReportError

Wimp_ReportError

(SWI &400DF)
Entry
R0 Pointer to standard SWI Error Block
R1 ReportError Flags
R2 Pointer to title text (if R1 bit 4 is set), or
Pointer to application name (if R1 bit 4 is not set), or
0 for basic error box title
R3 Sprite name (if bit 8 is set)
R4 Sprite Area? (if bit 8 is set)
R5 Pointer to string containing list of user specific button names (comma delimited)
Exit
R0 Corrupt
R1 0 = No selection
1 = OK
2 = Cancel
3 = Extra Button
4 = Extra Button
5 = Extra Button

Use

The purpose of this call is to display an error box to the user.

Notes

The use of this call should be avoided where possible, due to the non-multitasking nature of these error boxes.

Application specific buttons can be displayed in an error box, by having a list of button names, separated by commas in R5.

The total size for all the user specific button names is 256 characters.

No more than 8 buttons can be displayed in an error box.

A user pressing Return will have the same effect as clicking on the default button.

Pressing Escape is the same as choosing the default cancel option on the error box.

The SWI error block must be zero terminated.

See also

  • SWI Error Block
  • ReportError Flags
  • Sprite Area?
Created on June 11, 2009 00:17:40 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Window Manager SWI Calls, ReportError Flags, Error Box Type List, SWI Error Block, Error Generators, Message_Notify

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