Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!cbnews!jbr0 From: jbr0@cbnews.cb.att.com (joseph.a.brownlee) Newsgroups: comp.sys.mac.programmer Subject: Re: TCL limitations question (long but worth it)... Keywords: TCL, ThinkC, Color, OOP Message-ID: <1991Jun7.124238.22416@cbnews.cb.att.com> Date: 7 Jun 91 12:42:38 GMT References: <1991Jun5.191451.26662@dartvax.dartmouth.edu> Sender: jbr@cblph.att.com Reply-To: jbr@cblph.att.com Organization: AT&T Bell Laboratories Lines: 23 In article <1991Jun5.191451.26662@dartvax.dartmouth.edu> watt@eleazar.dartmouth.edu (Gill Watt) writes: > I would like to use the Think Class Libraries to write my > application which does: > Data display (in color) > [...] > The problem I have encountered is that the TCL windows and whatnot > are all defined based on the WindowPtr. For my application I > need to use the full palette of colors and therefore the CWindowPtr. > [...] > The crux of the matter is this. The TCL cannot easily be converted to > use CWindowPtrs as well as WindowPtrs [...] Well, I wouldn't say that exactly. I generally don't like making modifications to the TCL itself, but this is the one place where I have made an exception. I simply changed the IWindow() method to create a color window using NewCWindow() if the Mac has Color QD. I have done several things using this code, and I have had no problems. -- - _ Joe Brownlee, Analysts International Corporation @ AT&T Bell Labs /_\ @ / ` 471 E Broad St, Suite 1610, Columbus, Ohio 43215 (614) 860-7461 / \ | \_, E-mail: jbr@cblph.att.com Who pays attention to what _I_ say? "Scotty, we need warp drive in 3 minutes or we're all dead!" --- James T. Kirk