home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14877 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.1 KB  |  26 lines

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