home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / toolkits / xview / 1246 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.2 KB

  1. Path: sparky!uunet!UB.com!pacbell.com!decwrl!sdd.hp.com!cs.utexas.edu!geraldo.cc.utexas.edu!ccwf.cc.utexas.edu!hotathin
  2. From: hotathin@ccwf.cc.utexas.edu (Alex Ho)
  3. Newsgroups: alt.toolkits.xview
  4. Subject: Re: What can you do within an event handler?
  5. Date: 27 Jan 1993 06:47:12 GMT
  6. Organization: The University of Texas at Austin, Austin, Texas
  7. Lines: 44
  8. Distribution: world
  9. Message-ID: <1k5b5gINN7ea@geraldo.cc.utexas.edu>
  10. References: <1993Jan15.152558.7346@nlm.nih.gov> <1993Jan22.225901.20102@afterlife.ncsc.mil>
  11. Reply-To: hotathin@ccwf.cc.utexas.edu (Alex Ho)
  12. NNTP-Posting-Host: dopey.cc.utexas.edu
  13.  
  14. In article <1993Jan22.225901.20102@afterlife.ncsc.mil>,
  15. dpkemp@afterlife.ncsc.mil (David P. Kemp) writes:
  16. |>In article <1993Jan15.152558.7346@nlm.nih.gov> neve@nlm.nih.gov writes:
  17. |>>I'm trying to do some xv_set() calls from within an event
  18. |>>handler and then, without exiting from that event handler, proceed
  19. |>>to do some heavy processing stuff. I want the xv_set calls
  20. |>>to take effect completely before the processing begins.
  21. |>>
  22. |>> [...]
  23. |>>
  24. |>>What does it take to get a popup displayed, with ALL
  25. |>>its items, while in an event handler?
  26. |>>
  27. |>
  28. |>That's the wrong question.
  29. |>
  30. |>You want your event handler to start up the heavy processing, then
  31. |>return.  The heavy processing thing then can post events while it
  32. |>runs to keep you informed of its status, and a final event when it's
  33. |>done.
  34. |>
  35. |>Any time you refuse to return from a notifier event handler, you
  36. |>hang the notifier.  If your job takes more than a second or two,
  37. |>that's a very unfriendly thing to do (as you can see by your blank
  38. |>panels).
  39. |>
  40.  
  41. I am trying to do something similar: I have a heavy processing job that I want
  42. to run. But at the same time, I would like to let the user "stop" the
  43. job during
  44. the processing. According to the 19.10.2 of "X View Programming Manual"
  45. from O'Reilly, there is a function call "notify_dispatch()" that can be
  46. put into my processing loop, so that the Notifier can still accept
  47. events while looping. --- But somehow it just doesn't work at all. (No
  48. event is accepted before finishing the loop) Anyone knows why?
  49.  
  50. Thanks for any help in advance.
  51.  
  52. Alex
  53.  
  54.  
  55.  
  56.  
  57.                              
  58.