>Is there a way to determine the location of the mouse on a form when the user does a right click.
>
>Thanks in advance
The MouseUp() event does this.
PROCEDURE Object.MouseUp
LPARAMETERS nButton, nShift, nXCoord, nYCoord
Parameters
You must include an LPARAMETERS or PARAMETERS statement in the event procedure and specify a name for each parameter. Visual FoxPro passes the MouseUp event parameters in the following order.
nButton
In Visual FoxPro for Windows, contains a number that specifies which button was released to trigger the event: 1 (left), 2 (right), or 4 (middle).
nXCoord, nYCoord
Contains the current horizontal (nXCoord) and vertical (nYCoord) position of the mouse pointer within the form. These coordinates are always expressed in terms of the form's coordinate system in the unit of measurement specified by the ScaleMode property of the form.
Regards,
E.R. Gilmore