home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!decwrl!sdd.hp.com!cs.utexas.edu!geraldo.cc.utexas.edu!ccwf.cc.utexas.edu!hotathin
- From: hotathin@ccwf.cc.utexas.edu (Alex Ho)
- Newsgroups: alt.toolkits.xview
- Subject: Re: What can you do within an event handler?
- Date: 27 Jan 1993 06:47:12 GMT
- Organization: The University of Texas at Austin, Austin, Texas
- Lines: 44
- Distribution: world
- Message-ID: <1k5b5gINN7ea@geraldo.cc.utexas.edu>
- References: <1993Jan15.152558.7346@nlm.nih.gov> <1993Jan22.225901.20102@afterlife.ncsc.mil>
- Reply-To: hotathin@ccwf.cc.utexas.edu (Alex Ho)
- NNTP-Posting-Host: dopey.cc.utexas.edu
-
- In article <1993Jan22.225901.20102@afterlife.ncsc.mil>,
- dpkemp@afterlife.ncsc.mil (David P. Kemp) writes:
- |>In article <1993Jan15.152558.7346@nlm.nih.gov> neve@nlm.nih.gov writes:
- |>>I'm trying to do some xv_set() calls from within an event
- |>>handler and then, without exiting from that event handler, proceed
- |>>to do some heavy processing stuff. I want the xv_set calls
- |>>to take effect completely before the processing begins.
- |>>
- |>> [...]
- |>>
- |>>What does it take to get a popup displayed, with ALL
- |>>its items, while in an event handler?
- |>>
- |>
- |>That's the wrong question.
- |>
- |>You want your event handler to start up the heavy processing, then
- |>return. The heavy processing thing then can post events while it
- |>runs to keep you informed of its status, and a final event when it's
- |>done.
- |>
- |>Any time you refuse to return from a notifier event handler, you
- |>hang the notifier. If your job takes more than a second or two,
- |>that's a very unfriendly thing to do (as you can see by your blank
- |>panels).
- |>
-
- I am trying to do something similar: I have a heavy processing job that I want
- to run. But at the same time, I would like to let the user "stop" the
- job during
- the processing. According to the 19.10.2 of "X View Programming Manual"
- from O'Reilly, there is a function call "notify_dispatch()" that can be
- put into my processing loop, so that the Notifier can still accept
- events while looping. --- But somehow it just doesn't work at all. (No
- event is accepted before finishing the loop) Anyone knows why?
-
- Thanks for any help in advance.
-
- Alex
-
-
-
-
-
-