I discovered that it's only within the OnSelectItem event that SelCount appears 0. Using a 1ms Timer to display the SelCount is working, but rather crude in my opinion.
Ross. From: Ross Levis [mailto:r...@stationplaylist.com] Sent: Tuesday, 4 January 2011 6:02 PM To: Delphi Discussion List Subject: Virtual TListView SelCount bug In D7, I'm using a Virtual ListView (OwnerData=true) for the first time in a project, and there appears to be a bug in the VCL. I'm hoping I can make a fix in the VCL code if possible. I've searched the internet and found a person asking the same question on a forum but no one answered him. The ListView is MultiSelect. When using Shift Click to select multiple items, the SelCount property returns 0. When using Ctrl Click to select multiple items individually then SelCount is correct. I would rather not traverse all the items to check the selected state as this could be in the hundreds of thousands. Does anyone know of a fix? Many thanks. Ross. _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi