Set the listbox to UserDraw. You will then need to 'draw/write' the lines in the 'OnDraw' event. This allows you to change the font properties (inc.olour), background colour etc.
More info in the help files. ----- Original Message ----- From: "Russell Stapleton" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Sunday, July 09, 2006 8:10 AM Subject: Listbox can contain multiple font colours? > 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. > > -- > <[EMAIL PROTECTED]> > <http://www.russell.adsl4cairnlea.org> > > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 07/07/2006 > > _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

