Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What exactly does THISFORM.Refresh Refresh?
Message
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:
01289762
Vues:
15
>Don,
>
>>Thanks Sergey. Like I said I hadn't tested it. But it seemed logical. And as Naomi points out, I guess I can't conceive of an inactive control except on an inactive page. Although I suppose a control could be made inactive programmatically even if it was visible. But I may be wrong there too. So thanks Naomi also.
>
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform