Sure, look at the example under tListBox.OnDrawItem. The canvas's font.color should be set to the desired color before calling TextOut (or might be the canvas's pen.color, don't recall for certain). Setting the canvas's brush.color will change the background color also, if that's desired. If you want to do that, make sure to set brush.color before the call to FillRect.
At 01:10 AM 7/9/2006, Russell Stapleton wrote: >Hi all, absolute newbie here. > >Can I make a listbox contain different coloured text? I have a >listbox that adds words in a wordgame I am writing and would like to >show the incorrect words in red, correct words black. > >If this cannot be done (and I suspect not) I am open to any >suggestions as to how I should show the incorrect words, otherwise >anyone playing will forget what their previous attempts were. > >TIA, etc, >R. Regards, Sid Gudes PIA Systems Corporation [EMAIL PROTECTED] _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

