/************************************************************ * * NAME * UserRequest -- TRUE/FALSE continuance * * DESCRIPTION * Often, a situation occurs where the user should * be notified of some information. This function * is passed a statement like, "NO DISKS PRESENT", * and returns TRUE or FALSE as picked by the user. * * copyright (c) 1987 Martin D. Hash * * LAST EDITED * Martin Hash 30 Nov 1986 * * EDIT HISTORY * 30 Nov 1986 MH Created. * **********************************************************/ #include #include /* EXTERNAL VARIABLES */ extern struct Window *window; /* LOCAL VARIABLES */ #define COLOR0 0 #define COLOR1 1 #define COLOR2 2 #define COLOR3 3 /* LOCAL VARIABLES */ static struct IntuiText autotext = { COLOR3, COLOR1, JAM2, 5, 5, NULL, NULL, NULL }; static struct IntuiText true = { COLOR0, COLOR1, JAM2, 7, 3, NULL, "TRUE", NULL }; static struct IntuiText false = { COLOR3, COLOR1, JAM2, 7, 3, NULL, "FALSE", NULL }; /* FUNCTION */ BOOL UserRequest( text ) char *text; { autotext.IText = text; return (BOOL)AutoRequest( window, &autotext, &true, &false, 0, 0, 319, 60 ); }