home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / toolkits / xview / 1087 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!inls1.ucsd.edu!fisher
  2. From: fisher@inls1.ucsd.edu (Yuval Fisher)
  3. Newsgroups: alt.toolkits.xview
  4. Subject: Using a mouse event to exit a routine
  5. Date: 20 Nov 1992 21:30:50 GMT
  6. Organization: Institute for Nonlinear Science
  7. Lines: 23
  8. Message-ID: <1ejleaINNflq@network.ucsd.edu>
  9. NNTP-Posting-Host: inls1.ucsd.edu
  10.  
  11. This must be a common problem, but I haven't been able to 
  12. find a nice solution. I want a subroutine to run (drawing a
  13. fractal, say) until I hit the mouse button, at which point
  14. it stops and exits. 
  15.  
  16. I've managed to do this with the fullscreen package, but then 
  17. I can't use other windows (in other programs) while the subroutine is active.
  18.  
  19. I've managed to to this with read_next_event, but then a click on 
  20. some other button in my application causes everything to hang; the 
  21. proper event never seems to come through. 
  22.  
  23.  
  24. I'd appreciate any and all help, thanks..
  25.  
  26. Yuval Fisher
  27.  
  28. ---------------------------------------------------------------------
  29. Yuval Fisher                                 e-mail: yfisher@ucsd.edu
  30. Institute for Non-Linear Science 0402                               
  31. University of California, San Diego                                  
  32. La Jolla, CA 92093                                                  
  33. ---------------------------------------------------------------------
  34.