Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe with EditBox & Grids in VFP 6 SP5 & 7 with Upd
Message
 
To
04/10/2001 17:50:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00564535
Message ID:
00564541
Views:
16
Instead of using .setfocus() use .ACTIVEPAGE = [NUMBER OF PAGE]

>Hi,
>
>I have a form with a Pageframe with 7 pages on it. On one of the form I have 2 grids with a Button to show either one of these grids at one time (by using Visible property of the grid). I also have a Edit Box on that page. The click method of the button controls which grid to show and it makes the other invisible. It works fine if I use mouse to move from one Page to the other pages. But if I try to use code (setfocus and/or Activate methods on that page) to move from other pages to the Page with the Grids and then click on the button to show the other grid, the grids and Edit Box's scroll control do not get refreshed and old grid (which was made invisible) is still showing partially with the other new grid (which is made visible now). Even if I put Thisform.Refresh or Page.Refresh methods, still nothing changes. But, if I click on the Top of the Page and then click on the command button everything works perfectly. But I cannot ask my users to click on the top of Page to make it work.
>
>This behaviour is same in VFP 6.0 SP5 & VFP 7.0 with Updates installed from MS.
>
>What is possibly wrong? Thanks for any help in advance.
>
>Bal Singh
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform