Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement