Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Need multicolor text widget advice Message-ID: <9002212240.AA03289@expo.lcs.mit.edu> Date: 21 Feb 90 22:40:18 GMT References: <9697@spool.cs.wisc.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 > I need a text widget for which color information is > per-character rather than per-widget, as I want to > highlight arbitrary chunks of text using different > colors. > - Has anyone done this? Not in any text widget that I have heard of. > - How much work would it be to write a widget which > does this, or to modify the Athena text widget? Once you decide how to encode this information into the text it should be a pretty simple matter to render the text in different colors, by modifying the AsciiSource in the Athena text widget. I didn't feel that it was worth trying to come up with a text encoding with color information, so one color is all you get. Once you have the encoding telling the text widget to do the right this should be trivial. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213