Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip of the Day --- Pageframe and Page Refreshing
Message
 
To
02/12/1999 14:36:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00297873
Message ID:
00298086
Views:
38
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform