>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