Jump to content
David P

TListView bug highlighting when dragging

Recommended Posts

I have a TListView in Report virtual mode that is the target of a dragdrop operation.  

 

Moving my cursor over the listview, highlights the item under the cursor (HotTrack=false).

 

When I drag an item over the list view, DragOver is fired and I'm able to set Accept=true.

 

The problem is that only the initial item dragged over gets highlighted,  OnlvItemsCustomDrawItem does not get called for other items when the mouse passes over them.  If I drag back over the original item, it does trigger OnItemsCustomDrawItem.

 

Has anyone been able to work around this?

 

I think I asked this years ago and Remy answered saying it was a bug, but my search has not found original question.

 

 

Share this post


Link to post

There are so many bugs and limitations in TListView (the Windows control, not the VCL wrapper) that I have found that as soon as I spend more than 10 minutes trying to work around something in it, it's often a better idea to replace it with something else.

Just yesterday I needed the first column in a listview right-aligned; Forgetaboutit - and out it went.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×