Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 25727

Summary: Accessibility:Radio buttons not recognized as groups by screen readers
Product: [Eclipse Project] Platform Reporter: Diana Lau <dhmlau>
Component: SWTAssignee: Christophe Cornu <christophe.cornu+eclipse>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P2 CC: Tod_Creasey
Version: 2.0.2Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Diana Lau CLA 2002-11-05 10:24:29 EST
For example, I have 2 radio buttons that are in the same group (i.e. I can only 
select one or the other).  However, screen readers, such as JAWS, read the 
radio button description with "1 of 1" at the end.  That means it does not 
recognize other radio buttons in the same group which in this example, it 
should read "1 of 2".
Comment 1 Tod Creasey CLA 2003-01-27 09:39:40 EST
Are the radio buttons sibilings in the same Composite? It will only recognise 
them if they share a parent.
Comment 2 Diana Lau CLA 2003-01-27 09:45:10 EST
Yes, the radio buttons shared the same parent.
Comment 3 Christophe Cornu CLA 2003-01-30 14:26:34 EST
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();
		}		
	}
}
Comment 4 Christophe Cornu CLA 2003-02-19 16:35:45 EST
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.
Comment 5 Tod Creasey CLA 2003-02-19 16:45:32 EST
I have verified that it is fine in build 20030218 by looking at the radio 
buttons that we provide in the Workbench preference pages.