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 #479849] Wed, 12 August 2009 17:12 Go to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Copying to the SWT newsgroup, eclipse.platform.swt

Brian Fitzpatrick wrote:
> Hi all...
>
> I'm guessing I'm just missing something simple. But I have a Toolbar
> with two ToolItems in it. When the user goes to tab through the toolbar,
> they can tab to the first button but not the second. There is no
> difference with how I'm adding the two buttons, but the tab order just
> skips to the next control on the page.
>
> I'm not using complicated logic here...
>
> toolBar = new ToolBar(this.mPanel, SWT.FLAT);
> if (flag1) {
> item1 = new ToolItem(toolBar, SWT.PUSH);
> }
> if (flag2) {
> item2 = new ToolItem(toolBar, SWT.PUSH);
> }
>
> I've tried adjusting the TabList on the ToolBar instance, but can't set
> it for some reason without throwing an
> "java.lang.IllegalArgumentException: Argument not valid" exception.
>
> Any ideas would be great.
>
> Thanks in advance!
> --Fitz
Re: Bizarre issue with tab order in a ToolBar [message #479859 is a reply to message #479849] Wed, 12 August 2009 18:15 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Eric Rizzo wrote:
> Copying to the SWT newsgroup, eclipse.platform.swt
>
> Brian Fitzpatrick wrote:
>> Hi all...
>>
>> I'm guessing I'm just missing something simple. But I have a Toolbar
>> with two ToolItems in it. When the user goes to tab through the
>> toolbar, they can tab to the first button but not the second. There is
>> no difference with how I'm adding the two buttons, but the tab order
>> just skips to the next control on the page.
>>
>> I'm not using complicated logic here...
>>
>> toolBar = new ToolBar(this.mPanel, SWT.FLAT);
>> if (flag1) {
>> item1 = new ToolItem(toolBar, SWT.PUSH);
>> }
>> if (flag2) {
>> item2 = new ToolItem(toolBar, SWT.PUSH);
>> }
>>
>> I've tried adjusting the TabList on the ToolBar instance, but can't
>> set it for some reason without throwing an
>> "java.lang.IllegalArgumentException: Argument not valid" exception.
>>
>> Any ideas would be great.
>>
>> Thanks in advance!
>> --Fitz
Thanks Eric!
Re: Bizarre issue with tab order in a ToolBar [message #484516 is a reply to message #479859] Tue, 08 September 2009 02:41 Go to previous message
Benjamin Gold is currently offline Benjamin GoldFriend
Messages: 6
Registered: July 2009
Junior Member
My experience with SWT's ToolBar is that you can tab into and out of it, but to actually navigate between ToolItems you have to switch to using arrow keys (left/right).

---------------
Ben Gold
Previous Topic:Accessible behavior of Label + Combo
Next Topic:SWT on snow leopard osx 10.6 with older programs
Goto Forum:
  


Current Time: Fri Apr 19 23:00:17 GMT 2024

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

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

Back to the top