Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00367392
Message ID:
00367490
Views:
15
Bret,

How about if in the case there is reccount() = 0 then just force control onto the appropriate control with a KEYBOARD lastkey() in the grid.GotFocus() (or maybe just RETURN .f. in the When() this may be the easiest thing to do) you might need a NODEFAULT

>I like interfaces that can be easily navigated without the mouse. I don't like the necessity of using Ctrl-Tab to exit a grid that is in the tab order. I have made text box classes that set focus to another control in their keypress events, and placed these controls in last or first grid columns. The problem is that if there are no records in the grid, the columns don't get focus and don't receive the keypress. The grid seems to have focus but shows no visual cue, and it has no keypress event. The debugger's event logging tells me that the grid.gotfocus never fires, but the grid.When and .Valid do. When I press Tab, no events occur.
>
>When the grid has no records, it doesn't need to be in the tab order at all, I think. It might be nice to have some refresh code that turns the grid.Tabstop on or off depending on whether there are records in it. What would be some nice, generic code I could put in my grid class, form class, or navigation control class that would handle this without making many assumptions about underlying cursors and things? Or is there a better way?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform