home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!caen!rphroy!link.ph.gmr.com!rrichter
- From: rrichter@link.ph.gmr.com (Roy Richter PH/32)
- Newsgroups: comp.sys.mac.programmer
- Subject: TCL, MultiFinder, and Progress Dialogs
- Message-ID: <96290@rphroy.ph.gmr.com>
- Date: 11 Jan 93 18:30:40 GMT
- Sender: news@rphroy.ph.gmr.com
- Organization: GM Research and Environmental Staff
- Lines: 25
- Nntp-Posting-Host: link.ph.gmr.com
-
- I want to have a progress dialog up for an operation that takes
- over a minute, so I've got the usual text string, and a horizontal
- bar that fills up as the operation proceeds. It would be nice to
- also:
-
- (1) let the Multifinder take time slices to update other programs,
- I assume that WaitNextEvent will do it;
- (2) Have a "Cancel" button the user can push to cancel the
- operation. This has me stuck.
-
- I use the Class Library to manage the dialogs. That way, I just
- GetGoodClicks and so on. In this case, I'm not passing control up the
- line to let the DeskTop get the click and dispatch it. I wouldn't want
- to break up my operation into a bunch of Tasks, that would be
- hard--since I'm updating the progress dialog in a callback. I'd prefer
- the MultiFinder timeout and clicks be self-contained in the callback.
- That was I can use the callback in many places, as needed. Otherwise
- I'd need to restucture the code into a Task everytime I thought a
- time-slice was needed.
-
- Any hints?
-
- --
- Roy Richter Internet: rrichter@ph.gmr.com
- Physics Dept, GM Research UUCP: rphroy!rrichter
-