realbasic-nug
[Top] [All Lists]

Re: Toggle checkbox using return key

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Toggle checkbox using return key
From: "Rob" <rb at down2business dot com>
Date: Thu, 30 Aug 2007 19:20:59 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <000201c7eb5c$bf6ba550$6401a8c0 at MikeBrHP>
Thanks,
I wasn't aware of the space bar standard, I'll use that.
So you are not seeing 2 message boxes when if key = chr(13) and msgbox 
"return" are placed in the keydown event?
Rob
----- Original Message ----- 
From: "RBNUBE" <rbnube at mabenterprises dot com>
To: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
Sent: Thursday, August 30, 2007 7:23 PM
Subject: RE: Toggle checkbox using return key


> Two things:
>
> 1)  In case you aren't aware of this, the standardized way of checking and
> unchecking a check box, with a key, is to use the space key.  If you use
> this method, the checking and unchecking is automatically taken care of. 
> No
> code is required to accomplish this and, again, this is the standard way 
> to
> do this.
>
> 2)  Your code works properly on my machine (WinXP, RB2007r3).  I tested it
> in a new project, placing only your code in the KeyDown event of the
> CheckBox.  However, you're not accounting for the "other" Return/Enter
> key--Chr(03).
>
> I'm not 100% positive, but I believe both of these points hold true for 
> both
> Mac and Windows.
>
>
>
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html> 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>