Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement