home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!gurgle
- From: gurgle@netcom.com (Pete Gontier)
- Subject: ignoring first few CDEF draw messages
- Message-ID: <lakn+wd.gurgle@netcom.com>
- Date: Wed, 02 Sep 92 06:03:49 GMT
- Organization: cellular
- Keywords: CDEF draw message ignor control
- Lines: 15
-
- I've just recently dug up an old popup menu CDEF I wrote oh-so-long
- ago. It's quite spiffy -- as long as you're interested only in
- Western script systems and don't care about icons or color.
-
- I gave myself a tour through the code to make it look like the way
- I indent code these days and found some pretty weird stuff.
- Apparently I found it necessary to maintain some flags for each
- control which were relevant when the control lived in a dialog. The
- CDEF is ignoring the first couple of draw messages. I vaguely
- remember something about badly sized or positioned ghost images
- appearing in the dialog when the CDEF didn't ignore the first few
- draw messages. Anybody have any experience with this? Is there a
- way around it? I'd love to get rid of those flags.
- --
- Pete Gontier // EC Technology // gurgle@netcom.com
-