Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I trap right/double click of item in ListView
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Can I trap right/double click of item in ListView
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01185259
Message ID:
01185259
Views:
73
I've been playing around with the ListView control (MSComctlLib.ListViewCtrl2). I am able to add items, display them with small icons, large icons, etc. However, I have not yet found a way to trap the right click or double click of an item.

The control has a ItemClickEvent but that responds to a single click and doesn't tell if the user right or left clicked. I want to be able to open up a context sensitive menu if the user right clicks an item or launch a form if the user double clicks an item (much like the behaviour of windows explorer).

Thanks for your help!

Rodd
Next
Reply
Map
View

Click here to load this message in the networking platform