Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I like to make my forms usable without the mouse, so I put something like this in the KeyPress method of the form:
IF nKeyCode=13 AND ThisForm.ActiveControl.Name=[Grid]
ThisForm.EditRecord()
ENDIF
...which allows the user to hit enter to edit the currently selected record.
>I have created a quite a few apps now that use a grid for data entry purposes and I am fairly pleased with them.
>
>However it took a long time to get the desired effect so I have decided to use grids mainly for selecting items which are then edited using a form. I often use mutiple grids on a form so I have to get this right.
>
>Now I have to choose the neatest way of launching the editing form.
>
>I could have a button showing on the current row but that will use up an entire column just for that button. (however this is my favourite idea)
>
>I could have the button outside the grid but the label on it would have to be bigger to make it clear that it was a grid item that the button applied to (and I end up with yet another button using up space on the main form).
>
>A button for adding items will also have to go somewhere outside the grid or be assigned to a function key (this is a pity).
>
>What is the neatest solution to this problem you have seen?
>All ideas gratefully recived:)
Précédent
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