Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Re: Bizarre issue with tab order in a ToolBar
Re: Bizarre issue with tab order in a ToolBar [message #480632] Tue, 18 August 2009 02:36 Go to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
After some help from a nice guy on the #eclipse IRC chat room, I found a
solution to the problem. It involves basically adding a new ToolBar for
each individual button. This allows you to tab seamlessly from top to
bottom and hit all the various buttons.

It's kind of an ugly fix for what should be a default behavior, but
hey... it works!

Thanks!
--Fitz
Re: Bizarre issue with tab order in a ToolBar [message #481590 is a reply to message #480632] Fri, 21 August 2009 16:39 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Brian,

I think the (lack of) tabbing behaviour you're seeing is actually correct.
On win32, items in a common toolbar are traversable with the arrow keys,
while Tab is used to tab between controls (eg.- as you've seen, between
separate ToolBars). As always, my advise is to not fight the platform when
possible. This means that, if your tool items conceptually belong in a
common toolbar then put them there. The user will be able to arrow between
the items, and to Tab quickly move out to the next control. Also, the
toolbar will remember the last item that had focus when the user Tabs out
and will set focus there the next time it is traversed.

Grant


"Brian Fitzpatrick" <bfitzpat@redhat.com> wrote in message
news:h6d44d$rrg$1@build.eclipse.org...
> After some help from a nice guy on the #eclipse IRC chat room, I found a
> solution to the problem. It involves basically adding a new ToolBar for
> each individual button. This allows you to tab seamlessly from top to
> bottom and hit all the various buttons.
>
> It's kind of an ugly fix for what should be a default behavior, but
> hey... it works!
>
> Thanks!
> --Fitz
>
Re: Bizarre issue with tab order in a ToolBar [message #481595 is a reply to message #481590] Fri, 21 August 2009 17:06 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I notice your email address is at Red Hat, so you probably don't care about
the native behaviour on Windows ;-). GTK behaviour is the same, everything
else still holds.

Grant


"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:h6miki$ffb$1@build.eclipse.org...
> Hi Brian,
>
> I think the (lack of) tabbing behaviour you're seeing is actually correct.
> On win32, items in a common toolbar are traversable with the arrow keys,
> while Tab is used to tab between controls (eg.- as you've seen, between
> separate ToolBars). As always, my advise is to not fight the platform
when
> possible. This means that, if your tool items conceptually belong in a
> common toolbar then put them there. The user will be able to arrow
between
> the items, and to Tab quickly move out to the next control. Also, the
> toolbar will remember the last item that had focus when the user Tabs out
> and will set focus there the next time it is traversed.
>
> Grant
>
>
> "Brian Fitzpatrick" <bfitzpat@redhat.com> wrote in message
> news:h6d44d$rrg$1@build.eclipse.org...
> > After some help from a nice guy on the #eclipse IRC chat room, I found a
> > solution to the problem. It involves basically adding a new ToolBar for
> > each individual button. This allows you to tab seamlessly from top to
> > bottom and hit all the various buttons.
> >
> > It's kind of an ugly fix for what should be a default behavior, but
> > hey... it works!
> >
> > Thanks!
> > --Fitz
> >
>
>
Previous Topic:tabs are not drawn
Next Topic:Horizontal bar in views (see attached image)
Goto Forum:
  


Current Time: Thu Apr 25 10:48:58 GMT 2024

Powered by FUDForum. Page generated in 0.03238 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top