summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
diff options
context:
space:
mode:
authorCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2011-11-23 12:41:23 -0500
committerCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2011-11-23 12:42:23 -0500
commitacd21e0605604e65519caa05a651b424c54e8bba (patch)
tree296af05e60348bb1c8589abdecf240bc4e689d0a /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
parent823cc6c2771fef0325da5857f1a25b2b047efde4 (diff)
downloadeclipse.platform.swt-acd21e0605604e65519caa05a651b424c54e8bba.tar.gz
eclipse.platform.swt-acd21e0605604e65519caa05a651b424c54e8bba.tar.xz
eclipse.platform.swt-acd21e0605604e65519caa05a651b424c54e8bba.zip
Bug 333448 - Some radio button groups not read correctly by JAWS
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index b0612c48a8..4b44a64e42 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -1215,6 +1215,18 @@ LRESULT WM_GETDLGCODE (int /*long*/ wParam, int /*long*/ lParam) {
return result;
}
+LRESULT WM_GETOBJECT (int /*long*/ wParam, int /*long*/ lParam) {
+ /*
+ * Ensure that there is an accessible object created for this
+ * control because support for radio button position in group
+ * accessibility is implemented in the accessibility package.
+ */
+ if ((style & SWT.RADIO) != 0) {
+ if (accessible == null) accessible = new_Accessible (this);
+ }
+ return super.WM_GETOBJECT (wParam, lParam);
+}
+
LRESULT WM_KILLFOCUS (int /*long*/ wParam, int /*long*/ lParam) {
LRESULT result = super.WM_KILLFOCUS (wParam, lParam);
if ((style & SWT.PUSH) != 0 && getDefault ()) {