4 * [Generated from buttons, 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 ----------------------------------------------------------*
37 /* --- buttons_setup --- *
39 * On entry: R0 == dialogue box handle
40 * R1 == pointer to buttons block
41 * R2 == buttons base icon
42 * R3 == number of buttons to allow
44 * On exit: R2 == buttons flag mask
45 * R3 == cancel button icon, or -1
47 * Use: Sets up a dialogue box's buttons according to a buttons
51 extern routine buttons_setup;
53 /*----- Macros ------------------------------------------------------------*/
55 /* --- Macro: BUTTON --- *
57 * Arguments: msg == message tag to put in button
59 * Use: Inserts a text button into a buttons definition block.
62 /* --- Macro: BCANCEL --- *
64 * Arguments: text == optional text string (default is `Cancel')
66 * Use: Inserts a cancel button into a buttons definition block.
69 /* --- Macro: BOK --- *
73 * Use: Inserts an OK button into a buttons definition block.
76 /* --- Macro: BHELP --- *
80 * Use: Inserts a help button into a buttons definition block.
83 /* --- Macro: BGAP --- *
87 * Use: Omits a button in a buttons definition block.
90 /* --- Macro: BUTEND --- *
94 * Use: Terminates a buttons definition block.
97 /*----- Button block formats ----------------------------------------------*/
99 #define bFlag_cancel ((1<<0))
101 #define bFlag_ok ((1<<1))
103 #define bFlag_help ((1<<2))
105 #define bFlag_text ((1<<3))
107 #define bFlag_last ((1<<31))
109 /*----- That's all, folks -------------------------------------------------*/