title: TListView - How to rearrange items on resize
body: <p>I have a <strong>TListView</strong> that displays small thumbnails <code>(ViewStyle:=vsIcon)</code>.
  At run time I assign images to to items:</p>
  
  <pre><code>  for i := 0 to Total - 1 DO
     with ListView.Items.Add DO
       begin
        Caption := 'Item ' + IntToStr(i);
        ImageIndex := i;
       end;
  </code></pre>
  
  <p>At start up the form is not very wide and the thumbnails are shown on only 3 columns. Unfortunately, If I resize the form (and the <strong>ListView</strong>) the column count will remain 3 and in the right side I will have a lot of white space.</p>
  
  <p>This won't work also:</p>
  
  <pre><code>procedure TForm1.FormCreate(Sender: TObject);
  begin
   ListView.IconOptions.AutoArrange := TRUE;
  end;
  </code></pre>
  
  <p>How do I rearrange the items to fill the empty space?<br>
  There is any property like AutoArrange?</p>
  
  <hr>
  
  <p>Update:<br>
  I deleted the old control and I put a new one on the form.<br>
  Now <code>ListView.IconOptions.AutoArrange</code> works. There was something (some settings I made) in the previous control that prevented AutoArrange from working.</p>