Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lockscreen does not work
Message
 
 
À
01/07/2016 16:20:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01637864
Message ID:
01637879
Vues:
60
>>>I have a form where in the Activate() event, I rebuild several cursors and a few other data update tasks, all of which cause the UI form to flash and such as the grid recordsources and record pointers get moved around.
>>>
>>>So, I added LockScreen = .t. before my code, and Lockscreen = .f. after the code, but the UI still flashes a lot which the code between the LockScreen settings runs.
>>>
>>>Why doesn't LockScreen stop all this UI flickering like I want it to?
>>
>>Don't do this in the Activate method.
>
>Ummm... If you are going to give a reply like this, you should offer some alternative, or additional feedback, right? Obviously, my goal is to refresh the form because the user may have made changes outside of this form that now affect the result this was already showing, so I need to do an update. A fairly reasonable thing for the app to do, I think.
>
>So, do you have some additional advice to achieve what I'm seeking.

I suggest to avoid Activate method as it fires too often and the code may interfere with the normal form. You should be able to do what you need to do by some other means, say, by raising an event that this form will be subscribed to.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform