| Summary: | Accessibility:Radio buttons not recognized as groups by screen readers | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Diana Lau <dhmlau> |
| Component: | SWT | Assignee: | Christophe Cornu <christophe.cornu+eclipse> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | Tod_Creasey |
| Version: | 2.0.2 | Keywords: | accessibility |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Diana Lau
Are the radio buttons sibilings in the same Composite? It will only recognise them if they share a parent. Yes, the radio buttons shared the same parent. Diana,
The following works for me on
W2K - Eclipse M4 - Jaws 4.01
Does it fail for you? If not, can you post a snippet which would?
Thanks,
Chris
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.*;
public class PR25727 {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("PR25727");
FillLayout layout = new FillLayout();
shell.setLayout(layout);
for (int i = 0; i < 2; i++) {
Button button = new Button(shell, SWT.RADIO);
button.setText("title "+i);
button.setBounds(0,0,100,50);
}
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
}
Can't reproduce with Jaws 4.01 Please reopen if this still fails for you or if you need more instructions to run the code snippet in my former comment. I have verified that it is fine in build 20030218 by looking at the radio buttons that we provide in the Workbench preference pages. |