AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     pointer to standard SWI error block
     R1 =     flags
     R2 =     pointer to application name (or title if bit 4 set), or 0 for simply 'Error'
     R3 =     sprite name (if bit 8 set)
     R4 =     sprite area (if bit 8 set)
     R5 =     pointer to extra buttons string (if bit 8 set)

<=     R1 =     0 if nothing selected, 1 if OK selected and 2 if Cancel, 3-6 if extra buttons
           Return gives default, Escape the alternate
     R0 corrupt

This SWI opens a standard, non-multitasking, errorbox on the screen. Avoid, if possible. It is boring and, as stated above, non-multitasking. However, the RISC OS 3.50 extensions make the use of error boxes much more appealing to the programmer.

See PRM 3, page 179.
Wimp_ReportError extra buttons string
·     The list of buttons is comma seperated
·     Limit of buttons is 4 (3.98-), or 8 (4.00+)
·     Buffer size is 64 (3.98-) or 256 (4.00+) characters.

[sh-index] Back to list of manuals