realbasic-nug
[Top] [All Lists]

Re: ... Remove Control from Tab order (simple work around - press Key Fu

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ... Remove Control from Tab order (simple work around - press Key Function)
From: Tom Benson <tombenson at mac dot com>
Date: Thu, 31 Jan 2008 07:06:25 +1100
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> <12359673-8E3F-42DF-9132-25C017A5A9AF at great-white-software dot com> <DDC434F2-B54F-4406-B96A-427519C53BE1 at inspiringapps dot com>
I have a simple lib that is basically a refactored mash of MacOSLib  
and Windows Functionality Suite.

Both contain a PressKey Function.

Basically, the module merges these into a single function which is  
conditionally compiled.

I'm not at home right now so don't have it with me, but it's easy to  
do yourself...

There is a lot of cross over (functionality wise) between these two  
excellent contributions, and I found merging them together more  
convenient that making conditional statements in my wrapper code...

- Cheers,
Tom

On 31/01/2008, at 2:40 AM, Joe Strout wrote:

> On Jan 30, 2008, at 8:33 AM, Norman Palardy wrote:
>
>> 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.
>
> With all the typing that's gone into this thread, it seems like we
> could have solved it by now.  The Window.KeyDown event should get the
> Tab (or Shift-Tab) key before it's used to change the focus.  So, we
> could make a Window subclass (TabManagedWindow) which intercepts that
> keypress, and moves the focus in whatever custom way you choose --
> perhaps by looking at the ControlOrder plus a set of non-tabbed-into
> controls you set up in the Open event.
>
> Not quite as elegant as having it built-in, but not that big a deal,
> either.  If you have some unusual data-entry app that needs a
> nonstandard tab order, this would let you do it.
>
> Best,
> - Joe
>
> --
> Joe Strout
> Inspiring Applications, Inc.
> http://www.InspiringApps.com
>
>
>
> _______________________________________________
> 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>