Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

checkboxes in foxpro

Hi all,
How can I stop checkboxes being checked or unchecked by just hitting enter
key.
Thank you,
Kamy
[134 byte] By [Kamy] at [2007-11-10 12:49:47]
# 1 Re: checkboxes in foxpro
I got it. I made them read only and click event will only make them clicked
or unclicked.

"Kamy" <ksingal75@hotmail.com> wrote:
>
>Hi all,
>
>How can I stop checkboxes being checked or unchecked by just hitting enter
>key.
>
>Thank you,
>
>Kamy
Kamy at 2007-11-11 23:50:46 >
# 2 Re: checkboxes in foxpro
Fred,

This sounds much better I will do the way you have explained. Thank you so
much.
Kamy

"Fred Taylor" <ftaylor@mvps.org> wrote:
>In the CheckBox.KeyPress, you can put code like this:
>
>* KeyPress
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nShiftAltCtrl=0 AND nKeyCode=13
> NODEFAULT
>ENDIF
>
>
>Kamy wrote:
>> Hi all,
>>
>> How can I stop checkboxes being checked or unchecked by just hitting
>> enter key.
>>
>> Thank you,
>>
>> Kamy
>
>
>--
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.489 / Virus Database: 288 - Release Date: 6/10/2003
>
>
Kamy at 2007-11-11 23:51:51 >
# 3 Re: checkboxes in foxpro
In the CheckBox.KeyPress, you can put code like this:

* KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nShiftAltCtrl=0 AND nKeyCode=13
NODEFAULT
ENDIF

Kamy wrote:
> Hi all,
>
> How can I stop checkboxes being checked or unchecked by just hitting
> enter key.
>
> Thank you,
>
> Kamy

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 6/10/2003
Fred Taylor at 2007-11-11 23:52:47 >