Link to home
Start Free TrialLog in
Avatar of JJSANES
JJSANES

asked on

How do I link a popup menu to a ListView?

I have a ListView object in an application. It is populated with filenames. I have a popup menu with simple file options: Copy / Delete / Move / Open / Rename.
My question is: how can I create the link to make this popup Menu appear when the user righ-clicks any 'caption' in the ListView?
After long searches, I have only found a function that displays the Windows Explorer popup menu, that is, the menu that windows shows in the Explorer, but that did not help me at all.
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of jimyX
jimyX

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JJSANES
JJSANES

ASKER

I very sorry. Problem is (was) I was using a 3rd party component ListView, with no PopUpMenu property. Since it's the first time I am using this component, I never noticed the flaw. Thanks to you, problem solved!
Avatar of JJSANES

ASKER

Sometimes the best answer may be a question full of amazement like yours in this case. Ironic, isn't it? When I read your post, I realised there HAD to be a popup menu property somewhere in the Object Inspector. To no avail. I dropped a Delphi built-in ListView component into my application, and there it was! Six days wasted searching on the Internet for what I had in front of me. Ignorance is a big obstacle. Thank you for your time and interest, JimyX!!