[COLOR=blue]
procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState);
begin
case index of
0: ListBox1.Canvas.Brush.Color := clRed;
1: ListBox1.Canvas.Brush.Color := clBlue;
2: ListBox1.Canvas.Brush.Color := clGreen;
3: ListBox1.Canvas.Brush.Color := clAqua;
end;
ListBox1.Canvas.TextRect(rect,rect.Left,rect.Top,ListBox1.Items[index]);
end;