home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 222 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.9 KB

  1. Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
  2. From: GILLAM.R@AppleLink.Apple.COM (Richard Gillam,GEIS)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: 7.0 Color -> windoid WDEF?
  5. Message-ID: <724519728.1734027@AppleLink.Apple.COM>
  6. Date: 16 Dec 92 15:05:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 29
  10.  
  11. Nik--
  12.  
  13. I've done this, but I did it for a former employer, so I have a feeling finding
  14. and releasing the source code could potentially get me into trouble.  (I could
  15. do it anyway, as long as you promised not to know where you got it, but even
  16. here we might have problems.)
  17.  
  18. I think it's kind of interesting that Apple hasn't yet provided their own
  19. windoid WDEF (digression:  I really hate the term "windoid"!) with this feature
  20. in it.  This user-interface element is so common now that it seems natural to
  21. include it.  I know that certain foreign script systems have to have this
  22. window type to display their input methods.
  23.  
  24. Equally annoying is that there is no documentation on doing the color stuff.
  25. There's a Tech Note that describes the current format of the 'wctb' resource.
  26. But this is only half the problem.  The standard WDEF doesn't use the colors in
  27. the wctb; they calculate the colors they do use from the ones in the wctb.  I
  28. had to look at the WDEF source code to find the algorithm, and I never did
  29. figure out how to translate the algorithm into C, copying the assembler
  30. instead.  This is a BIG hole in Apple's documentation.  Apple, if you want us
  31. to support your approach to window-frame coloring in our own WDEFs and CDEFs,
  32. we need ALL the information!  Specifically, we need the algorithm used to
  33. calculate the real colors to be published, along with which parameters are used
  34. to get all the actual colors used in drawing the window frame.  Making us
  35. figure all this out ourselves isn't developer-friendly.
  36.  
  37. Rich Gillam
  38. GE Information Services
  39.  
  40.