home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d322 / gwin.lha / Gwin / examples / request.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-27  |  399 b   |  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("colo",1.0);
  9.    uprint(10.,90.,"Press left");
  10.    uprint(10.,80.,"mouse button...");
  11.    upset("colo",3.0);
  12.    umove(10.0,10.0);
  13.    udraw(70.0,70.0);
  14.    ugrin(&x,&y);
  15.    while(1){
  16.       code = uyorn("Quit session?","WHY NOT?  (Its stuck!)","NO",95.,30.);
  17.       if(code != 0)break;
  18.    }
  19.    uend();
  20. }
  21.  
  22.