Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is refresh necessary inside the Page::activate() event?
Message
De
08/10/2007 09:22:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01259377
Message ID:
01259388
Vues:
16
>I'm refactoring our pageframe and page classes and I'm wondering if it is necessary to explicitely call the refresh() method.
>I wouldn't face with a tons of side effects.
>
>I've found this sentence in the wiki:
>"A VFP idiom: When you refresh a Form with a Page Frame on it, only the .ActivePage gets refreshed. This is by design and is desireable for video performance reasons. Thus, whenever the Page.Activate() method fires, you should do a This.Refresh().
>It's really a PITA to remember to put a This.Refresh into the Activate method of each page. See Auto Page Refresher for a suggestion on how to implement this behavior in your base page frame class.
"
>There are also solutions to implement autorefresher objects binded to the UIEnable method.
>
>In a few words, I've no clear idea of the situation.
>Thank you for your help.

The problem is, precisely, that a ThisForm.Refresh() will NOT refresh all pages - only the currently selected page. So yes, you have to refresh each page when it is activated.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform