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: "RBNUBE" <rbnube at mabenterprises dot com>
Date: Thu, 30 Aug 2007 19:23:17 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Importance: Normal
Keywords: RB-NUG
Organization: N/A
Thread-index: AcfrVzlW6au6ELY4TGWn5xiOsx0IcAAAyTIg
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>


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