Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RightClick on multiple Selected ListBox item
Message
 
À
10/07/1998 18:51:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00116367
Message ID:
00116382
Vues:
15
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??????
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform