Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding ScaleMode and control coordinates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01347419
Message ID:
01347759
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Hi Dmitry,

> What I am wondering is couldn't you just get the position of the current object position without creating a temporary one?

OBJTOCLIENT() is necessary when the control is nested inside other controls, especially inside page frames. Unfortunately, OBJTOCLIENT() returns the position always in pixels. By moving a temporary object at the form level on the same position as the control I can read the foxels value from the properties of the temporary object. If you don't want to create and release objects, you can use a fixed name and keep the object alive.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform