[comp.sys.mac.programmer] Color windows in Macinntosh

jain@enuxha.eas.asu.edu (Born C Programmer) (10/12/89)

Hi,
	I just have a quick question?

	How do we create windows/dialog boxes in Color 
	using Thinkspeed C and Quickdraw. I have spent some
	time on Inside Macintosh Vol 5 and tried to create
	window in color. 

	Does any body has a working program for creating
	windows/dialog boxes and even cursor in color?
	If possible, e_mail.        

	thanks in advance.


   
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Shalabh Kumar Jain       | e_mail: jain@enuxha.eas.asu.edu ( Preferred )  
 1840, E Hayden Lane      |     or  asskj@asuacad.bitnet
 #116                     |     or  atl1s@asuavax.bitnet 
 Tempe, AZ 85281          |     or  asskj@asuavax.bitnet
			  |
			  | voice: (602) 894-9506 (Home)
		          |        (602) 965-4114 (Office) Friday 9:00-12:00 MT
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

oster@dewey.soe.berkeley.edu (David Phillip Oster) (10/13/89)

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..."