Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding ScaleMode and control coordinates
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347419
Message ID:
01347759
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform