home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 530b.lha / AMenu_v1.3 / Warn.c < prev    next >
C/C++ Source or Header  |  1991-07-03  |  1KB  |  33 lines

  1. /*********************************************************************\
  2. **                               ________________________________    **
  3. **    A n t h o n y             |________    __    __    ________|   **
  4. **                                       |  |o_|  |o_|  |            **
  5. **            T h y s s e n            __|   __    __   |__          **
  6. **                                  __|   __|  |  |  |__   |__       **
  7. **   `` Dragon Computing ! ''    __|   __|     |  |     |__   |__    **
  8. **                              |_____|        |__|        |_____|   **
  9. **                                                                   **
  10. \*********************************************************************/
  11. /*   A standard error report to the user  */
  12. #include <Proto/Intuition.h>
  13. #include <Proto/Arp.h>
  14. #include <Libraries/ArpBase.h>
  15. extern struct ArpBase *ArpBase;         /* this should be in ArpBase.h */
  16.  
  17.  
  18. struct IntuiText
  19.   BodyMsg = { 2,1,JAM1,14,8, NULL, NULL/* to be filled*/, NULL },
  20.   OkMsg   = { 2,1,JAM1, 6,3, NULL, (UBYTE*)"Ok", NULL };
  21.  
  22.  
  23. void
  24. Warn( char *Msg )
  25.   /* Warn the user of problem */
  26. {
  27.   BodyMsg.IText = (UBYTE*)Msg;
  28.   (void)AutoRequest(NULL, &BodyMsg, NULL, &OkMsg,
  29.        NULL, NULL, 60+IntuiTextLength(&BodyMsg), 54);
  30. }
  31.  
  32.  
  33.