Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Location of Mouse on right click
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01004710
Message ID:
01004718
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform