David Duffy 0 Posted Wednesday at 04:49 AM I'm using a TListView in a Delphi 12.3 FMX project and have it working, but have some questions. Is there a way to change the item index on a right mouse click ? I was going to do this via OnMouseDown (checking for the right button) then update the item index, but I can't see how to determine what item is under the mouse. All of the methods I've seen don't seem to be available in the FMX version. Second, does the FMX version support virtual mode? If so, how is it enabled? I can see an UpdateObjects event which might be used to populate the items. Lastly, I’d also like to be able to support moving items around in the list via drag and drop, but the properties and events don’t seem to suggest that it can. Possible? Share this post Link to post
Patrick PREMARTIN 150 Posted Wednesday at 07:04 AM Hi I don't have a simple solution to manage a right click on a list view item except looking at the code from TListViewBase.MouseUp() and TListViewBase.SetNewItemIndex() to determine what item is under the mouse position. Using frames in a vertical scroll box will be perhaps simpler in your case. Share this post Link to post
David Duffy 0 Posted Wednesday at 08:37 PM Thanks for the reply Patrick. I took a look at the source, but it looks too involved for me to work out a solution. I may have to give up on the FMX TListView and look at other options. Share this post Link to post