Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get available _screen.Height/Width ?
Message
De
21/07/2002 00:48:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00680835
Message ID:
00680845
Vues:
21
>>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 use SYSMETRIC() to calculate it or can let VFP do the work.
Thisform.LockScreen = .T.
>lnWidth = Thisform.Width
>Thisform.WindowState=2
>Thisform.Width = lnWidth
>Thisform.AutoCenter= .T.
>Thisform.LockScreen = .F.
>
Hi Sergey,

If I could set WINDOWSTATE=2 for an instant without the form flashing, that would do it, but it always flashes even with LOCKSCREEN=.T. Is there some way to keep it from flashing?

I can't figure out how to get the available screen height from SYSMETRIC(). I've tried SYSMETRIC(2) Screen height, SYSMETRIC(22) Maximized window height, and SYSMETRIC(9) Height of window title, but I can't get it down to what WINDOWSTATE=2 gives me.

When I set WINDOWSTATE=2 :
Form.Height=862
SYEMETRIC(2)=1024
SYSMETRIC(9)=23
SYSMETRIC(22)=969
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform