[DUG] Delphi 2006 Listview problem
Alister Christie
alister at SalesPartner.co.nz
Mon Mar 13 13:02:21 NZDT 2006
Possibly you could write a descendant of TListView which has some
correction code in it, then do a search and replace in the .dfm and .pas
files and replace TListView with TMyListView.
You'd need to make sure that your .dfm files are not in the binary
format - which they probably wont be if you are using D2005/6
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
Colin Fraser wrote:
> 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
> #####################################################################################
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
More information about the Delphi
mailing list