Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox RightClick()
Message
De
28/08/2003 05:29:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00823852
Message ID:
00824107
Vues:
21
>Thanks for that Gregory. It seems like a bit of an effort just to get it to act like other controls.
>All I'm trying to achieve is an action happening when you right click the list. But first it selects/deselects the item (I have multiselect=.T.) then performs the action, normally on 1 item too few if multiple items are selected.
>Not very intuitive for the user.
>I'll have a play with your code examples and see if I can get it to operate in an acceptable way.
>Many thanks.
>Caroline

Caroline,

I'm sure you will
>>&& MouseDown(
>>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>>
>>do case
>>case inlist(nShift, 0, 1, 2)	&& normal, SHIFT, CTRL for MultiSelect
>>	do case
>>	case inlist(nButton,  2)	&& Right)
>>		NODEFAULT

	        && put your action here
                && leave the rightclick() empty


>>	endcase
>>endcase
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform