home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!pagesat!netsys!agate!spool.mu.edu!darwin.sura.net!lhc!ceb!neve
- From: neve@nlm.nih.gov (Leif Neve)
- Newsgroups: alt.toolkits.xview
- Subject: Re: What can you do within an event handler
- Message-ID: <1993Jan27.161044.8171@nlm.nih.gov>
- Date: 27 Jan 93 16:10:44 GMT
- References: <1k5b5gINN7ea@geraldo.cc.utexas.edu>
- Sender: news@nlm.nih.gov
- Reply-To: neve@nlm.nih.gov
- Organization: National Library of Medicine
- Lines: 20
-
- In article 1k5b5gINN7ea@geraldo.cc.utexas.edu, hotathin@ccwf.cc.utexas.edu (Alex Ho) writes:
- >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?
-
- Somewhere in O'Reilly it points out that you have to stop the notifier
- before you can do explicit dispatching. Use notify_stop() to stop the notifier
- and return you past where the notifier was started, and then
- call the routine that does heavy processing and do your explicit
- dispatching. After that start up the notifier again (notify_start()).
-
- I found a piece of public domain software called ftptool helpful in
- this area. It's available at a ftp site near you.
-
- Leif Neve
-