Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress form not refreshing in runtime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01092609
Message ID:
01093242
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
Hi Dawa,

> m.oform.refresh()

Let me add to sentences why Refresh didn't work for you.

Updating the screen is a low priority task in VFP as well as in Windows. That is, when an application is busy doing something (whatevey you needed the progressbar for), it doesn't spend any time to update the screen. Only from time to time VFP does perform an update which makes a progressbar look like it's jumping at random intervals. The Draw method forces VFP to immediately draw the form. The advantage is that it now looks much smoother. The drawback, however, is that the loop takes longer. How much longer depends much on the video capabilities of the computer. It's much slower on a Terminal Server, for example, probably not noticable on a desktop machine.

We tend to see Refresh as a method that updates the visual appearance of a form. However, in reality Refresh does only one thing: It re-evaluates all ControlSources and writes them into the Value property. Writing into the Value property forces a control to draw itself. In other words, every control with a ControlSource is updated, any other control like shapes, containers, even grids are not.

Similarily, the Requery method is responsible for evaluating the RowSource property and transferring values into the List property.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform