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:41:20 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <000201c7eb5c$bf6ba550$6401a8c0 at MikeBrHP><042001c7eb5c$6d794090$23fabf44 at CPQLaptop> <46D755C3 dot 6010703 at tolisgroup dot com>
Thanks Tim,
I guess I must have mis-typed something when Charles suggested that earlier, 
works now.
Rob

----- Original Message ----- 

From: "Tim Jones" <tjmac at tolisgroup dot com>
To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Sent: Thursday, August 30, 2007 7:41 PM
Subject: Re: Toggle checkbox using return key


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

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