Community
Participate
Working Groups
To reproduce: 1. launch attached snippet 2. press tab several times The tab order is out of order: text, check A, check B, radio A (!) Expected: tab order same as widget order: text, radio A, check A, check B Workaround: resetting the tab oder via parent.setTabList( new Control[] { ... } ) works around the problem.
Created attachment 177800 [details] Snippet
Radio buttons are not tab groups (they are tab items). Tab is used to move the focus from group to group. Within a tab group use arrow keys to move the focus from tab item to tab item. This behaviour was design based on the default platform behaviour of Windows and it is consistent across all our platforms. I can not change this. Sorry. Another way to fix is: final Composite parent = new Composite(shell, SWT.NONE); parent.setLayout(new GridLayout(6, true)); new Text(parent, SWT.BORDER); Composite parent2 = new Composite(parent, SWT.BORDER); parent2.setLayout(new FillLayout()); new Button(parent2, SWT.RADIO).setText("RadioA"); new Button(parent2, SWT.RADIO).setText("RadioB"); new Button(parent, SWT.CHECK).setText("CheckA"); new Button(parent, SWT.CHECK).setText("CheckB"); (this way it is more explicity that you have a tab group containing both radio groups). closing as wont fix.
Ok, thanks for the info. Elias.