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: Tim Jones <tjmac at tolisgroup dot com>
Date: Thu, 30 Aug 2007 16:24:51 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Organization: TOLIS Group, Inc.
References: <000201c7eb5c$bf6ba550$6401a8c0 at MikeBrHP>
RBNUBE wrote:
> 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.
>   

.... and Linux.

Tim

_______________________________________________
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>