Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROBLEM IN REFRESHING OBJECTS IN A PAGEFRAME
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00023724
Message ID:
00023746
Views:
23
>The anonymous bureaucrat gave me this reply to a similar question:
>>I have a form with nav buttons and a page frame. THISFORM.Refresh is not refreshing the hidden pages on the pageframe. When I select those pages, their textboxes are empty until I do something like edit the record. I corrected the problem by putting code in the Pageframe.Refresh that said
>>THIS.Page1.Refresh
>>THIS.Page2.Refresh
>>THIS.Page3.Refresh etc.
>>but I don't see why I had to do that. By the way, the nav buttons are modified from the wizstyle.txtbtns class. Among other things, I had to change it so that it would look in pageframes for objects to enable or disable.
>
>Well, there's been some grumbling (including me at first) about the page refreshing, but maybe in the big picture it's not so bad, since refreshing everything on a form with pageframe (maybe subpageframes) could slow things down unnecessarily. You might want to think about putting the individual page refreshes just in the Activate or Click events for the pages so you don't refresh pages that don't need it...
>I think that Activate is a better place than Click to put a THIS.Refresh.

The one problem with Activate is that if a user tabs through pages, you can get slow jerky tabbing from unnecessary refreshes, I've discovered. Of course if they stop on a page by tabbing, then you need Activate -- it's kind of a Catch 22...But you're right, it took many months but eventually one wise-guy user found that he could tab through pages, then my Click refresh code didn't work, so I moved to Activate...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform