Double right click to Show a PopUpMenu with A TListView !!

Posted by djiga4me on Stack Overflow See other posts from Stack Overflow or by djiga4me
Published on 2010-03-08T14:56:59Z Indexed on 2010/03/08 17:36 UTC
Read the original article Hit count: 146

Hi,

I have a TListView and TPopupMenu, and I want to show a context menu when I right click on a TListItem. I tried the "AutoPopup" by assigning the component, but on a right click the PopupMenu is shown only and the wanted element is not selected. So i tried to use the "OnMouseDown", but we need to click and click again to show the menu on the wanted item. The first click is to select the item and the second shows the menu. But I want just a one click to do the two things. Do you have and idea about the problem?

Thank you.

© Stack Overflow or respective owner

Related posts about tlistview

Related posts about popupmenu