Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
X/Y Coords
Message
 
À
15/08/2000 11:36:10
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00404995
Message ID:
00405018
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform