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