realbasic-nug
[Top] [All Lists]

Re: ... Remove Control from Tab order (simple work around)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ... Remove Control from Tab order (simple work around)
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Wed, 30 Jan 2008 08:33:07 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <012920082204 dot 6405 dot 479FA2D20005E6C80000190522070208530B049D0199D30E0E05 at comcast dot net> <BB4E33FD-DB45-4663-81BB-C314845465C5 at mac dot com>
On 30-Jan-08, at 12:22 AM, Tom Benson wrote:

> I've done a lot of high volume data entry work, and couldn't agree
> more, but...
>
> There is a very simple work around for this... it's a bit hackish but
> it works well.....
>
> Each Window has A Dictionary property called CanGetFocus
>
> In each control's open event, I add a dictionary entry to the
> dictionary with a reference to the control as the key and a boolean
> value.
>
> e.g.
>
>       CanGetFocus.Value(me) = False
>
>
> Than in the gotFocus event of that control
>
>       If not CanGetFocus(me) then
> DeclareLib.PressKey(DeclareLib.PressKey.kTab)
>
>
> PressKey is a cross platform function that calls a system level
> declare to simulate a press of the Tab Key...
>
> This skips focus of the control and moves it onto the next control in
> the chain which accepts focus.. and the best part is you can get and
> set this ability at runtime by altering the dictionary entry...

The only downside is this is an all or nothing kind of solution.
What's needed is a way to designate that a tab into a control should  
skip the control but if you click on the control it can get focus.
There might be a means to use your mechanism to detect this case and  
behave accordingly.
_______________________________________________
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>