home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d571 / gwin.lha / Gwin / Examples / request.c < prev    next >
C/C++ Source or Header  |  1991-12-22  |  436b  |  22 lines

  1. #include "gwin.user.h"
  2. main()
  3. {
  4. float x,y;
  5. long code;
  6.  
  7.    USTART("low1",50.,200.,50.,200.);
  8.    upset(G,"colo",1.0);
  9.    uprint(G,10.,90.,"Press left");
  10.    uprint(G,10.,80.,"mouse button...");
  11.    upset(G,"colo",3.0);
  12.    umove(G,10.0,10.0);
  13.    udraw(G,70.0,70.0);
  14.    if(ugrin(G,&x,&y)){UEND();exit(0);};
  15.    while(1){
  16.       code = uyorn(G,"Quit session?","WHY NOT?  (Its stuck!)","NO",95.,30.);
  17.       if(code != 0)break;
  18.    }
  19.    UEND();
  20. }
  21.  
  22.