Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What exactly does THISFORM.Refresh Refresh?
Message
De
06/02/2008 01:34:29
 
 
À
05/02/2008 15:09:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01289119
Message ID:
01289940
Vues:
17
>>You can look it in a different way, is not the form that does not refresh an inactive page of the pageframe, but it is the pageframe itself that chooses not to refresh all of it's pages but only the active one. The form just loops thru its controls calling the control's refresh, which if they are themself a "container class" (not an instance of class "container" but in general, like pageframes, containers, forms in the case of the formset, etc) then it will do recursively the same, calling the refresh of all it's controls, thus the pageframe is able, and chooses so, to not call the refresh of the inactive pages.
>
>Yes, that makes sense. Thanks for the insight. I have been periodically frustrated by selecting a page and finding its data did not keep up with the current record. Solved this by putting this.refresh in the activate event of the page but this still occassionally leaves problems. I suppose I could cause the pageframe's refresh to loop through the pages and refresh each when the pageframe is refreshed thereby keeping everything current but with a performance penalty. My guess is there's a reason why this isn't the default behaviour so I haven't done it.

Setting a flag .lNeedsRefresh on pages or working with timestamps of tLastRefresh on PAge and PageFrame can cut down unnecessary refreshes...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform