procedure TForm1.ListBox1DrawItem(Control: TWinControl
Index: Integer
Rect: TRect
State: TOwnerDrawState)
begin
with ListBox1.Canvas do
begin
if (odSelected in State) then Brush.Color:=clWhite
Font.Color := clBlue
FillRect(Rect)
TextOut(Rect.Left,Rect.top,ListBox1.Items[index])
end
end;