> So when you add column 6, column 1 doesn't resize at all?  If you
> know this,
> you can go
>
>   with ListView1 do
>     Columns[1].Width := Columns[1].Width - Columns[6].Width;
>
> or if it's resizing incorrectly, you could set Column[1].Width to
> ClientWidth - (Sum of widths of other columns).  Then reverse the
> code when
> the column disappears again.  Either way, Column[1] will still resize
> automatically as the listview width changes.  Is that what you meant?

Pretty much. I set column[1]'s width to 50 in the IDE, and it sets it at
runtime. If i add the field manually, it goes off the edge of the screen,
even if I resize the form (its aligned client)

So, in answer to your question: no, the variable-sized column does not
resize when I add another column in....

N

---------------------------------------------------------------------------
    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"

Reply via email to