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 15:22:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00680835
Message ID:
00680914
Vues:
22
Hi Sergey,
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?


>Try following
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
>LockWindowUpdate(_Screen.HWnd)
>lnWidth = Thisform.Width
>Thisform.WindowState=2
>Thisform.Width = lnWidth
>Thisform.AutoCenter= .T.
>LockWindowUpdate(0)
>
I don't see any flickering or flashing when I use this code.
>
>
>>>>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?
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform