Board index » cppbuilder » Using vsReport with a virtual-mode TListView
Graham Thompson
![]() CBuilder Developer |
Using vsReport with a virtual-mode TListView2005-11-01 07:53:30 PM cppbuilder52 I'm trying to speed up a TListView by setting OwnerData true (to enable virtual mode) in BCB5. Generally speaking, things are going well (thanks to help from a BCB Journal article from 2000), but I'm hitting a brick wall trying to implement proper support for vsReport. I'm creating TListColumn instances at run-time and setting their Width properties to ColumnHeaderWidth, but in virtual mode all I get is columns that are all at position 0 (in the header control) with Width -2. Setting AutoSize true has no effect on the problem. All the changes are in BeginUpdate-EndUpdate blocks, for both Items and Columns. If I use a 'real' width (i.e. not one of the constants -1 or -2) the columns are fine. Does anyone have any ideas? I'm not averse to handling listview WM_NOTIFYs if need be, but if a simple change will let me use the VCL properties, it'll save me a lot of time. Many thanks, GT |