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] Mon, 17 August 2009 22:36 Go to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
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 12:39 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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 13:06 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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: Fri Aug 22 21:45:49 EDT 2014

Powered by FUDForum. Page generated in 0.01840 seconds