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