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

Click here to load this message in the networking platform