Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get available _screen.Height/Width ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00680835
Message ID:
00680913
Vues:
13
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform