home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / 'liner_394.lzh / 'Liner / Source / sure.c < prev    next >
C/C++ Source or Header  |  1990-10-28  |  1KB  |  41 lines

  1. #include "Globals.h"
  2.  
  3. AreYouSure(ReqWindow)      /*Displays an ARE YOU SURE? requester and waits*/
  4. struct Window *ReqWindow;  /*for an OK or CANCEL. (Uses AutoRequest() )*/
  5. {
  6.    struct IntuiText Body,Positive,Negative;
  7.  
  8.    Body.FrontPen=2;     /*Setup the 'Are you sure?' text*/
  9.    Body.BackPen=1;
  10.    Body.DrawMode=JAM1;
  11.    Body.LeftEdge=8;
  12.    Body.TopEdge=8;
  13.    Body.ITextFont=NULL;
  14.    Body.IText="Are you sure?";
  15.    Body.NextText=NULL;
  16.  
  17.    Positive.FrontPen=2;       /*OK*/
  18.    Positive.BackPen=1;
  19.    Positive.DrawMode=JAM1;
  20.    Positive.LeftEdge=6;
  21.    Positive.TopEdge=3;
  22.    Positive.ITextFont=NULL;
  23.    Positive.IText="OK";
  24.    Positive.NextText=NULL;
  25.  
  26.    Negative.FrontPen=2;       /*Cancel*/
  27.    Negative.BackPen=1;
  28.    Negative.DrawMode=JAM1;
  29.    Negative.LeftEdge=6;
  30.    Negative.TopEdge=3;
  31.    Negative.ITextFont=NULL;
  32.    Negative.IText="Cancel";
  33.    Negative.NextText=NULL;
  34.  
  35.       /*Display the requestor and return the result*/
  36.    return(AutoRequest(ReqWindow,&Body,&Positive,&Negative,NULL,NULL,
  37.                180,60));
  38. }
  39.  
  40. /*End of sure.c*/
  41.