Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting focus on grid in page frame
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00247045
Message ID:
00247219
Views:
22
>Thanks for the suggestion. I put in a NODEFAULT statement and was able to find out what I was doing wrong. Now only one small problem remains.
>
>Whenever I click on the initially inactive page (Page2), the grid has focus but the focus rectangle is on the caption of Page2. When I leave Column 1 focus goes back to Page2. After that everything is fine. Also, if I click on Page1 then again on Page2, there is no focus rectangle is on the caption of Page2.
>
>Is there any way I can get the focus to be fully on the grid the first time I click the page (ie no focus rectangle on the caption)?

That's what I call "dual focus" :) It's really on the grid, but appears to be on both objects. It's a "feature" with grids...this is one way that should get rid of that 'apparent' page focus:

page.grid.setfocus
page.setfocus
page.grid.setfocus

Kind of silly looking, but generally works.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform