home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14396 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.5 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!canterbury.ac.nz!otago.ac.nz!stanger
  2. Newsgroups: comp.sys.mac.programmer
  3. Subject: Re: color dialogs
  4. Message-ID: <1992Aug24.125940.3316@otago.ac.nz>
  5. From: stanger@otago.ac.nz (Nigel Stanger)
  6. Date: 24 Aug 92 12:59:40 +1300
  7. References: <l97tauINN2nl@utkcs2.cs.utk.edu>
  8. Organization: University of Otago, Dunedin, New Zealand
  9. Lines: 25
  10.  
  11. strickli@cs.utk.edu (Michael C. Stricklin) writes:
  12. > Is it honestly true that there is no trap to load a color dialog
  13. > box from a resource?  My superior intuitive skills tell me that it
  14. > would be called 'GetCDialog,' but I can't find reference to it in
  15. > any of the IM's, or any of Thimk (sic) C's header files.  Regardless,
  16. [...]
  17.  
  18. I had the problem that one of my dialogs refused to come up in
  19. colour. After digging around in the Dialog Manager chapter in IM5
  20. I discovered that GetDialog by default uses a (B&W) DialogPtr.
  21. However, if there is a 'dctb' resource with the same ID as your
  22. DLOG resource, GetDialog uses a CDialogPtr instead. There is no
  23. GetCDialog :(
  24.  
  25. A bit of playing around with the colour settings in the ResEdit
  26. dialog editor will create a dctb for your dialog. (I think I
  27. changed the border colour of the dialog, which automatically
  28. generated a dctb, then I changed it back again -- something like
  29. that anyway.)
  30.  
  31. ----------------------------------------------------------------------
  32. Nigel Stanger,                  Internet: stanger@otago.ac.nz
  33. University of Otago,            Phone: +64 3 479-8179
  34. Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
  35. String Quartet: see RUBBER BAND.
  36.