Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RightClick on multiple Selected ListBox item
Message
 
To
10/07/1998 18:51:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00116367
Message ID:
00116382
Views:
14
Hi Matthew.
I just tried this and it seems to work.
I entered this code into the MouseDown event of the List box.

if nButton = 2
noDefault
endif

This disables all right clicks in the MouseDown event, but the RightClick event still fires.

HTH
-Michael M. Emmons

>When I rightclick in a listbox (to popup a shortcut menu) with miltiple selected item, all selected items are deseleted and only the item the cursor happens to be on is now highlighted. This is not my desired result. You can maintain all selections if you hold the 'ctrl' key when rightclicking. I could probably fix this by saveing all selected items to an array and then refreshing but this seems like an awful lot of work. Any suggestions??????
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform