Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip of the Day --- Pageframe and Page Refreshing
Message
 
À
02/12/1999 14:36:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00297873
Message ID:
00298086
Vues:
39
Did you check out my Page Tab Chameleon class in Files Section by any chance? Along with other things it does automatic page refresh when the page is activated.

>I think it's a good general rule; there may be situations where you don't want to do it. For me, I like to encapsulate enabled/disabled states for objects within the object itself based on the environment. This is generally done in the Refresh event or called from the Refresh event. If the object never Refreshes, then it's state will be wrong and stay wrong unless you put a This.Refresh() in each Page's Activate event and that can be suboptimal and you have to remember to do it each time you modify a Pageframe.
>
>>
>>Hi John,
>>
>>Despite it may be useful in some cases, wouldn't it be a little overkill :) for just getting some of those pageX.controlX.PropertyX.value? We can easily refresh only the desired control before getting its value...
>>
>>Nick

>>>This code ensures that all Pages are refreshed whenever the Form is refreshed. Not the code that disallows a refresh of the ActivePage: This would be redundant as the ActivePage is refreshed.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform