Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Color windows in Macinntosh Keywords: Macintosh, window, Thinkspeed C Message-ID: <31887@ucbvax.BERKELEY.EDU> Date: 13 Oct 89 09:24:27 GMT References: <305@enuxha.eas.asu.edu> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 35 In article <305@enuxha.eas.asu.edu> jain@enuxha.eas.asu.edu (Born C Programmer) writes: > How do we create windows/dialog boxes in Color > using Thinkspeed C and Quickdraw. Use the following in your Rmaker file: Type dctb=GNRL ,138 ;;color table for rDATAENTRY so we get a color dialog here. .I 0 0 0 -1 Type DLOG ,138 (32) ;;rDATAENTRY A 44 8 333 501 Invisible GoAway 4 ;;document without grow box 0 138 Type DITL ,138 (32) ;;rDATAENTRY 1 Button ;;MODIFYBUT 256 416 276 476 OK Then, in the code do: dlg = GetNewDialog(138, NIL, (WindowPtr) -1L); the mere presence of an appropriately numbered dctb makes the o.s. do the right thing. --- According to the Constitution, the Constitution is unconstitutional: --- David Phillip Oster --U.S.Constitution I.10.1: "No State shall Arpa: oster@dewey.soe.berkeley.edu --enter into any treaty, alliance, or Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu -- confederation..."