Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Placement of a Popup
Message
 
 
To
01/03/2005 18:49:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991788
Message ID:
00991848
Views:
17
I'm glad you figured it out.

>Got it. found the solution in the msn help.
>
>the trick is to convert the pixels to foxels.
>function _Pix2Fox
>PARAMETER ;
>	napixel, ;
>	cdimension
>
>* *** usage
>* ***	myfoxelrow = _pix2fox(pixvalnum,"V") && for vertical (row) values
>* ***	myfoxelcol = _pix2fox(pixvalnum,"H") && for horizontal (col) values
>
>RETURN m.napixel/FONTMETRIC(IIF(UPPER(m.cdimension) = "H", 6, 1))
>this now gets a lot closer to my button object. i now have to add/consider form border width, titlebar, etc - and i should have my popup right where i need it.
>
>thanks Sergey for your help.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform