Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox RightClick()
Message
From
28/08/2003 05:29:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823852
Message ID:
00824107
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform