[DUG] Delphi 2006 Listview problem
Colin Fraser
colin.fraser at hill-labs.co.nz
Mon Mar 13 12:23:00 NZDT 2006
Hi all,
Not sure if I would call it a bug or an 'added feature', but lots of our
list views in Delphi 2006 now have a problem as follows:
Many columns have been set to width '-2' at design time and runtime (or
ColumnHeaderWidth), which at run time, expands to the width of the
column/data in the column.
In Delphi 2006, when setting -2 it instantly sets the width of the column to
match the design time column width. When changing the column header or
adding list view items, the column header remains the same size as it did at
design time... which is usually way to small, and is different behaviour to
Delphi 2005.
Digging further, it appears that READING the Width property of a column
actually changes behaviour of the code... don't read the width, and the
column sizes correctly, read the width, and the column incorrectly sizes...
seems they added some code to the list view column get width function!!
Not sure if anyone has come across this, or has any quick solutions (other
than adding in 'Width := ColumnHeaderWidth' in all the hundreds of places
that would need it... :-))
Regards,
Colin
#####################################################################################
Attention
The information in this email and in any attachments is confidential. If you are not
the intended recipient then please do not distribute, copy or use this information.
Please notify us immediately by return email and then delete this email from your
computer.
Any views or opinions presented are solely those of the author.
This email has been scanned for Viruses and Content and cleared
by NetIQ MailMarshal
#####################################################################################
More information about the Delphi
mailing list