Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
X/Y Coords
Message
 
To
15/08/2000 11:36:10
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00404995
Message ID:
00405018
Views:
28
>How can i get the xCoord and yCoord of an object in pixels?
>I know the top and left Coords from a form with CurrentX and CurrentY, but how can i get the same from a shape control?. Also i want to know the final X/Y Coords in 0,0 terms. I need this because the Coords in a DEFINE WINDOW are in 0,0 to n,n format.
>
>Thanks in advance
Héctor,

I'm not entirely sure what you're asking here. The top and left co-ordinates are relative to the container. In the case of a form, it's relative to the client area of the form (which doesn't include the title bar or the width of the frame). OBJTOCLIENT() can return the co-ordinates of an object in a container relative to the form. A form's co-ordinates, if not a top-level window are relative to either the VFP desktop or the top-level containing it.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform