home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!athos.apple.com!user
- From: athos@apple.com (Rick Eames)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: TCL, MultiFinder, and Progress Dialogs
- Message-ID: <athos-120193094621@athos.apple.com>
- Date: 12 Jan 93 17:47:21 GMT
- References: <96290@rphroy.ph.gmr.com> <11JAN199316162844@comb1.comb.umd.edu> <1993Jan11.215603.26274@kth.se>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: Apple Computer, Inc.
- Lines: 39
-
- In article <1993Jan11.215603.26274@kth.se>, d88-jwa@byse.nada.kth.se (Jon
- Wtte) wrote:
-
- > Actually, this is a bad thing to do to a TCL app; for instance
- > AppleEvents would be lost because they are ALWAYS delivered
- > regardless of event mask.
- >
- > Instead, I usually put up a movable, modal dialog with the bar
- > etc, and when I need to give idle time, I do:
- >
- > gSleepTime = 0 ;
- > gApplication -> Process1Event ( ) ;
- >
- > If you can set up an Idle chore to do the idling, you could
- > even have your dialog be the supervisor of the chore and have
- > BeginDialog and EndDialog handle dialog ending.
- >
- > So what does this do? Well, you can't call DoModalDialog if you
- > cannot push the thing you're doing into a chore; you'll have
- > to mimic the behaviour in your idle call. What remains is to
- > handle DoCommand ( cmdCancel ) by overriding it in the
- > CDLOGDirector.
- >
-
- The problem with this method is that your damned cursor ends up resetting
- to a pointer each time you Process1Event() so you have to override that too
- to ensure that your nice spinning cursor works.
-
- ############################################################################
- Rick Eames Internet: athos@apple.com
- Apple Computer, Inc. CompuServe: 76666,2114
- My Opionions are my own. AmericaOnline: EamesR
- "The Lord prefers common-looking people. That is why he makes so many of
- them." - Lincoln
-
- "But you know what? There's another point that I'd like to make: it's very
- possible that Adolf Hitler kept a very nice check book. You know? I mean,
- and that's fine." -- Barbara Boxer, Bill Press Show, KFI, 10/24/92
- ############################################################################
-