home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!sun-barr!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
- From: jpugh@apple.com (Jon Pugh)
- Subject: Re: FlushEvents necessary? (was: Re: Toolbox init)
- Sender: news@gallant.apple.com
- Message-ID: <jpugh-160892232829@90.20.3.200>
- Date: Mon, 17 Aug 1992 06:32:09 GMT
- References: <1992Aug11.152914.18785@uni-paderborn.de> <13992@gazette.bcm.tmc.edu> <hammett.714004576@sbsu1.aukuni.ac.nz>
- Organization: Apple Computer, Inc.
- Followup-To: comp.sys.mac.programmer
- Lines: 26
-
- In article <hammett.714004576@sbsu1.aukuni.ac.nz>,
- hammett@sbsu1.aukuni.ac.nz (Tim Hammett) wrote:
- >
- > ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
- > >> InitWindows();
- > >> FlushEvents(0xffff,0);
- >
- > >Personally I prefer to do a FlushEvents *after* all my program setup.
- >
- > Is it necessary to do FlushEvents() at all these days? I notice that most
- > of the DTS sample Apps don't. I would be interested in hearing the pros
- > and cons of using FlushEvents at program startup.
-
- Personally, I feel that you shouldn't need to call FlushEvents, but I can
- see
- situations where you should.
-
- Most notable, the annoying splash screen (we've all made them). Since some
- of these things require a click to dismiss them, if you put one up you
- should ALWAYS call FlushEvents afterwards so that the user's click doesn't
- hit the desktop and switch him. Accidentally switching out of a windowless
- program is darned annoying.
-
- Otherwise, don't flush and let the user start mousing ahead of you.
-
- Jon
-