Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto Shift Focus Out Of A Grid
Message
From
12/11/2004 15:40:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Howto Shift Focus Out Of A Grid
Miscellaneous
Thread ID:
00961010
Message ID:
00961010
Views:
56
Hello everyone,

I would like to know the best way to programatically move focus "away" from a grid that currently has focus. In the form in question, just after it opens for the first time, I call a method on the grid that scrolls to the correct position in the grid and sets focus to the appropriate column depending on the current order of the grid's recordsource (if there is a column in the grid that is based on the current order).

The problem is that after "sorting" the grid out for the first time, I actually want to focus on a particular control on the form. However, even after calling the control's Setfocus method, focus still stays with the grid (FYI, the grid is in a container that is in page #1 of a pageframe).

So, if anyone knows how to shift focus away from the grid to a nominated control, I would really appreciate any tips.

Thanks!

Regards,

Angie.
Next
Reply
Map
View

Click here to load this message in the networking platform