home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!mimsy!afterlife!dpkemp
- From: dpkemp@afterlife.ncsc.mil (David P. Kemp)
- Newsgroups: alt.toolkits.xview
- Subject: Re: What can you do within an event handler?
- Message-ID: <1993Jan22.225901.20102@afterlife.ncsc.mil>
- Date: 22 Jan 93 22:59:01 GMT
- References: <1993Jan15.152558.7346@nlm.nih.gov>
- Organization: The Great Beyond
- Lines: 29
-
- 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).
-
- --
- Dave Kemp dpkemp@afterlife.ncsc.mil
- -----------------------------------------------------------------------------
- "Washington [D.C.] is a city of Southern efficiency and Northern charm"
- -- John F. Kennedy
-