Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From control position to WAIT row
Message
From
09/08/1999 11:02:42
 
 
To
09/08/1999 10:22:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00251449
Message ID:
00251468
Views:
6
Hi Nancy ---

Wish there was a reasonable way but there isn't :-)

INT(SYSMETRIC(1)/FONTMETRIC(6,WFONT(1),WFONT(2),WFONT(3))) = Max # of "cols"
INT(SYSMETRIC(2)/FONTMETRIC(1,WFONT(1),WFONT(2),WFONT(3))) = Max # of "rows"

Now use the Top and Left properties of the open Window vs. _SCREEN and the Top and Left properties of the control vs the Window to determine an absolute position for the control. Once you have those absolutes, get a factor of those coordinates vs the maximum (use SYSMETRIC) for the screen and use divide the formulas above by that factor and use those values for the WAIT AT value.

PITA, huh?

>I'm coming up blank on a reasonable way to translate the position of a control (which is in pixels) to screen rows/cols, which is the parameter WAIT WINDOW takes.
>
>Any ideas? TIA
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform