4 * [Generated from errorBox, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
30 /* --- errorBox_init --- *
32 * On entry: R0 == pointer to application name
36 * Use: Initialises the errorBox system nicely. It creates the
37 * dialogue box now, and just uses it for the rest of the
41 extern routine errorBox_init;
43 /* --- errorBox_beep --- *
49 * Use: Sounds the bell (VDU 7) if the CMOS settings dictate that
50 * error boxes should cause a beep.
53 extern routine errorBox_beep;
57 * On entry: R0 == pointer to error block
58 * R1 == button style code, or pointer to buttons block
60 * On exit: R0 == icon number clicked (ordered from the right)
61 * CS if R0 == 0, else CC
63 * Use: Displays an error box on the screen. The error block
64 * doesn't have to have a sensible error number, and doesn't
65 * have to be word aligned, either.
67 * Since errorBox claims a dialogue box handle on
68 * initialisation, it isn't possible for this call to fail.
69 * Hence it is ideal for reporting problems like `Out of
70 * memory' or `Too many windows'.
72 * The buttons in the error box may be given either by a code
73 * or by a pointer to a buttons block (these may easily be
74 * distinguished, since the codes are lower than &8000).
76 * Standard button arrangements are given by codes, as follows:
82 * 5 == OK, Cancel, Help
85 extern routine errorBox;
87 /*----- That's all, folks -------------------------------------------------*/