home *** CD-ROM | disk | FTP | other *** search
- #include "Globals.h"
-
- AreYouSure(ReqWindow) /*Displays an ARE YOU SURE? requester and waits*/
- struct Window *ReqWindow; /*for an OK or CANCEL. (Uses AutoRequest() )*/
- {
- struct IntuiText Body,Positive,Negative;
-
- Body.FrontPen=2; /*Setup the 'Are you sure?' text*/
- Body.BackPen=1;
- Body.DrawMode=JAM1;
- Body.LeftEdge=8;
- Body.TopEdge=8;
- Body.ITextFont=NULL;
- Body.IText="Are you sure?";
- Body.NextText=NULL;
-
- Positive.FrontPen=2; /*OK*/
- Positive.BackPen=1;
- Positive.DrawMode=JAM1;
- Positive.LeftEdge=6;
- Positive.TopEdge=3;
- Positive.ITextFont=NULL;
- Positive.IText="OK";
- Positive.NextText=NULL;
-
- Negative.FrontPen=2; /*Cancel*/
- Negative.BackPen=1;
- Negative.DrawMode=JAM1;
- Negative.LeftEdge=6;
- Negative.TopEdge=3;
- Negative.ITextFont=NULL;
- Negative.IText="Cancel";
- Negative.NextText=NULL;
-
- /*Display the requestor and return the result*/
- return(AutoRequest(ReqWindow,&Body,&Positive,&Negative,NULL,NULL,
- 180,60));
- }
-
- /*End of sure.c*/
-