procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer; ARect: TRect; State: TOwnerDrawState);begin with (Control as TListBox).Canvas do begin Brush.Style := bsSolid; if not ListBox1.Selected[Index] then begin Brush.Color := clWhite end else begin Font.Color := clWhite; end; FillRect(aRect); Brush.Style := bsClear; TextOut(aRect.Left, aRect.Top, (Control as TListBox).Items[Index]); end;