>If you call the menu from the object:
>
>nRow =(wrows()/thisform.height) *(OBJTOCLIENT(this, 1)+this.height)
>nCol = (WCOLS()/thisform.width) *(OBJTOCLIENT(this, 2)+10)
>
>This code give you a point placed at the bottom of the control and 10 pixels to the left side of the control.
>
>
>>>>>>Just wondering. I have in all my controls a emergent menu that activates when the user right click on it. But when i use the KEY for that menus in those keyboards that has this special KEY, i only get this caracter Ÿ. I now that the VFP objects are created by VFP it self. But if you use this KEY in other programs, inclusive in VFP it self you will get the shortcut menu associated with the control. Is there anyway to cath this KEY to show the menu?
>>>>>>Thanks.
>>>>>>
>>>>>>Luis Navas
>>>>>
>>>>>Do you mean this ?
>>>>>
>>>>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>>>>If nKeyCode = 93 and nShiftAltCtrl = 1
>>>>> NoDefault
>>>>> *do myShcut with this
>>>>>endif
>>>>>
Cetin
>>>>
>>>>Yes Cetin, thanks, but this will put the menu at the coordinates of the mouse, 'cause the menu generator does this, so i changed the menu to receive some parameters as coordenates, but how can i get the coordenates of the object that calls the menu?
>>>>
>>>>Luis
>>>
>>>Luis,
>>>Sorry couldn't understand what's the difference between " of the object that calls the menu " and the object passed to menu.
>>>
>>>do myShcut with this
>>>
>>>*myShCut.mpr
>>>lparameters toObject
>>>lnTop=objtoclient(toObject,1)
>>>...
>>>
>>>Cetin
>>The problem that i see is:
>>If i call the menu like this:
>>
>>>>>
>>>>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>>>>If nKeyCode = 93 and nShiftAltCtrl = 1
>>>>> NoDefault
>>>>> *do myShcut with this
>>>>>endif
>>>>>
Cetin
>>
>>It will show the menu at mouse pointer position, and i wan't to showw the menu at the position of the textbox for example.
>>Luis
Thanks a lot that was what i wanted.
Luis
I never forget a face, but in your case I will make an exception :-)