home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
488.lha
/
modengine_v1.0
/
mod_misc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-07
|
807b
|
34 lines
/* mod_misc.c
* Copyright (C) 1990 Commodore-Amiga, Inc.
* written by David N. Junod
*
* misc. functions
*
*/
#include "mod.h"
/*--- AutoRequest support variables ---*/
extern struct TextAttr Topaz80;
UBYTE ErrorBuffer[255] = "\000";
struct IntuiText ErrorText =
{2, 1, JAM1, 20, 15, &Topaz80, &ErrorBuffer[0], NULL};
struct IntuiText ctext =
{AUTOFRONTPEN, AUTOBACKPEN, AUTODRAWMODE, AUTOLEFTEDGE,
AUTOTOPEDGE, &Topaz80, " CONTINUE ", NULL
};
BOOL NotifyUser (struct Window * win, UBYTE * msg)
{
struct IntuiText *errortext;
SHORT arwidth, arheight = 60, arwadj = 60;
sprintf (ErrorBuffer, "%s\000", msg);
errortext = &ErrorText;
arwidth = IntuiTextLength (errortext) + arwadj;
return ((BOOL) AutoRequest (win, errortext, NULL, &ctext,
0, 0, arwidth, arheight));
}