You should be able to highlight individual items on the listbox by adding
code on the listbox's OnDrawItem event.  If you want to simply change the
text color then do the following:

  ListBox1.Canvas.Font.Color:= clRed;
  ListBox.Canvas.TextOut(x,y, ListBox1.Items[index]);

if you want to hightlight the whole item then add this prior to the code
above.
  ListBox1.Canvas.Brush.Color:= clREd;
  ListBox1.Canvas.FillRect(Rect);

Hope this helps.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to