Re: Bizarre issue with tab order in a ToolBar [message #479849] |
Wed, 12 August 2009 13:12  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03124 seconds