Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid flicker when changing pictures in image con
Message
De
12/07/2010 23:11:29
 
 
À
10/07/2010 10:31:33
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:
01472305
Vues:
75
>>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.
>
>To stop the flickering you must preload the additional images in the init of the overall control. Add additional image controls to the container (set to visible) and then set the picture property to each image to be used. Now you can assign the images to the visible image at run-time from the non-visible images. This solution was provided to me from Bernard Bout.

Greg

That is a solution for fixing the Hourglass that you see when you flip thru images. Pre loading them avoids this and you see no hourglass since VFP now reads from memory, instead of disk.

The flicker is caused by VFP and PNG format images. To avoud flicker in VFP avoid PNG. Use BMP instead.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform