Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get available _screen.Height/Width ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00680835
Message ID:
00680913
Views:
14
>>If I set _Screen.ActiveForm.Height = _Screen.Height and _Screen.ActiveForm.AutoCenter=.T. the top of the form is hidden and _Screen.ActiveForm.Top show -35 (different for different screen resolutions).
>>
>>How can I find the available height of the _Screen so I can prevent this?
>>
>>TIA
>
>You can calculate it using the Foxtool _GetWRect function like this
STORE 0 TO nTop, nLeft, nBottom, nRight
>= _GetWRect(_SCREEN.hWnd, @nTop, @nLeft, @nBottom, @nRight)
This will return the abosulte position of the variables passed. From there, it's simple to calculate.

I found that _Screen.Height-Sysmetric(4)*2-Sysmetric(9) gives me the height of a Maxiimized Form and _Screen.Width-Sysmetric(3)*2 gives me the width.
Do you see anything wrong with these Calculations?
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform