home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / apps / 1676 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!winson
  2. From: winson@mksol.dseg.ti.com (peter b winson)
  3. Newsgroups: comp.sys.sun.apps
  4. Subject: How to register an event inside a callback procedure?
  5. Message-ID: <1992Aug21.152158.29227@mksol.dseg.ti.com>
  6. Date: 21 Aug 92 15:21:58 GMT
  7. Organization: Texas Instruments, Inc
  8. Lines: 12
  9.  
  10. I have a time consuming procedure that takes total control of
  11. my windows application that I am developing.  I want to be able
  12. to press a button and break out of the loop that this procedure
  13. runs.  How do I register an event like a button press inside
  14. this loop? 
  15.  
  16. Right now I press a button to do computations. It runs a callback
  17. routine and holds up all the windows until the procedure that does
  18. the computations finishes.  I want to have control over my window
  19. application so that while this procedure is running I can press a
  20. stop button.  Right Now it does not even register the stop buttons
  21. event until the procedure is complete and the callback returns.
  22.