Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working out relative xy coords within a control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01340698
Message ID:
01341076
Views:
16
You're welcome.

>That's great, thanks Sergey!
>
>>
>>* MouseDown
>>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>>
>>* Top and Left of the button relative to the form
>>* If button is placed directly on the form, this step is not necessary
>>lnTop  = OBJTOCLIENT(This, 1)
>>lnLeft = OBJTOCLIENT(This, 2)
>>
>>* X and Y coordinates of the mouse relative to the button
>>lnX = nXCoord - lnLeft + 1
>>lnY = nYCoord - lnTop + 1
>>* ...
>>
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform