Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From control position to WAIT row
Message
From
09/08/1999 11:08:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00251449
Message ID:
00251474
Views:
9
I got a case of the stupids and forgot about SROWS and SCOLS. I guess I don't work in FP enough ;-)


>>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
>
>Hi Nancy,
>
>Well, as a start you'd used SYSMETRIC() to get the height and width of the screen, then use SROWS() and SCOLS() to get the number of screen rows and columns (if _SCREEN is maximized). Divide the height and width by the rows and columns to get the number of pixels for each. This help?
------------------------------------------------
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
Reply
Map
View

Click here to load this message in the networking platform