>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
>>
>>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>>
>>do case
>>case inlist(nShift, 0, 1, 2)
>> do case
>> case inlist(nButton, 2)
>> NODEFAULT
>> endcase
>>endcase
Gregory