Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid flicker when changing pictures in image con
Message
De
09/07/2010 21:15:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01472113
Message ID:
01472118
Vues:
63
Naomi,

Thanks for your reply. Setting Enabled to .F. then back to .T. did not do the trick.

You know what? I commented out the LockScreen lines and it reduced the flicker a bit. Weird...

Dennis



>>Hi Experts,
>>
>>I have a form in a timekeeping app which shows the time.
>>
>>In it, I have a timer with an interval of 1000 (1 second), which gets the current time using TIME(), then shows the corresponding image file (PNG) that represents each digit.
>>
>>Everything is fine though except for the "flickering" of the screen each time the timer fires.
>>
>>Below is my code in the Timer event:
>>
>>
>>
>>* code here assigns the image filenames to the vars
>>* 
>>WITH ThisForm
>>
>>   .LockScreen = .T.
>>   .imgHour1.Picture = lcHour1File
>>   .imgHour2.Picture = lcHour2File
>>   .imgMin1.Picture = lcMin1File
>>   .imgMin2.Picture = lcMin2File
>>   .imgSec1.Picture = lcSec1File
>>   .imgSec2.Picture = lcSec2File
>>   .LockScreen = .F.
>>
>>ENDWITH
>>
>>
>>
>>How do I stop the "flickering"?
>>
>>Thanks in advance.
>>
>>Dennis
>
>I don't think it'll help, but add also this.enabled = .f. at the beginning and this.enabled = .t. at the end.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform