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:41:55 -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> <042001c7eb5c$6d794090$23fabf44 at CPQLaptop>
Rob wrote:
> Thanks,
> I wasn't aware of the space bar standard, I'll use that.
>   

You don't really need to "use" that as it is a standard in the UI 
definitions on all three platforms and you get it for free.  If the user 
is using the keyboard to move around your interface, when they tab to a 
checkbox or radiobutton, the spacebar activates the control with no 
additional code required.

> So you are not seeing 2 message boxes when if key = chr(13) and msgbox 
> "return" are placed in the keydown event?
>   

Not if you "Return True" after your code in the KeyDown event.

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>