Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter Key on a CheckBox in a Grid
Message
De
30/10/2002 14:15:29
 
 
À
30/10/2002 13:38:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00716997
Message ID:
00717025
Vues:
31
Thanks!

This was kind of what I was trying. But I made a global variable
on the form and then adjust it for the click event and if they
used the space bar. I set the variable on the gotfocus event of
the checkbox and then I set the checkbox on its lost focus.
(this would have worked except for the same thing I needed to
add to your suggestion .... ThisForm.Refresh)

Your suggestion is alot cleaner and easier. Thanks I am using it!

:-)

>Put this in KeyPress event of the checkbox:
>
>
>IF nKeyCode = 13
>  This.Value = !This.Value
>ENDIF
>
>
>
>>I have a grid with a checkbox in one of the columns.
>>The end-users uses the 'Enter' key to move from
>>column to column, upon reaching the Checkbox column
>>when they press 'Enter', it flips the state of the
>>checkbox, then calls all of the events and then
>>moves to the next column. Is there a way to turn off
>>the default of the checkbox?
>>
>>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform