Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To lock screen or not
Message
De
14/04/2011 17:56:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01507393
Message ID:
01507409
Vues:
75
IMO, that's dangerous code. Always save the current value going in and reset to that going out, so the code would look like:
llLockScreen = ThisForm.LockScreen
ThisForm.LockScreen = .T.
ThisForm.Refresh()
ThisForm.LockScreen = llLockScreen
>Hi,
>
>When I started developing in VFP (I think around 1998) I read somewhere that it is a good idea to call .LockScreen .T. before calling form.refresh(). So I have in a lot of places in my application call to method Thisform.MyRefresh(). And the code in the MyRefresh() is
>
>
>thisform.Lockscreen = .T.
>thisform.refresh()
>thisform.Lockscreen= .F.
>
>
>Does it still make sense to keep this code? Or with the hardware we have today the refresh is just as fast with or without Lockscreen?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform