Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter Key on a CheckBox in a Grid
Message
From
30/10/2002 14:15:29
 
 
To
30/10/2002 13:38:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00716997
Message ID:
00717025
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform