Bug 88777 - [Accessibility] About box text not read
Summary: [Accessibility] About box text not read
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2005-03-22 13:11 EST by Tanya Wolff CLA
Modified: 2006-12-04 11:01 EST (History)
4 users (show)

See Also:


Attachments
MS Inspect Objects on the About box (24.52 KB, image/gif)
2005-03-22 13:12 EST, Tanya Wolff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tanya Wolff CLA 2005-03-22 13:11:25 EST
The about box text is seen in MS Inspect Objects only as the MSAA Value, not the
 MSAA Name, so JAWS says only "Edit. Type in text."
The Name field should contain the text, or is there a JAWS trick to read the Value?
Comment 1 Tanya Wolff CLA 2005-03-22 13:12:16 EST
Created attachment 19083 [details]
MS Inspect Objects on the About box
Comment 2 Nick Edgar CLA 2005-03-22 22:27:23 EST
We're using a StyledText here with SWT.MULTI | SWT.READ_ONLY.  This should just
work.
Comment 3 Nick Edgar CLA 2005-03-22 22:27:45 EST
Code is in AboutDialog.createDialogArea.
Comment 4 Steve Northover CLA 2006-06-28 14:17:58 EDT
CAR is this a dup of the dialog problem?
Comment 5 Karice McIntyre CLA 2006-12-04 09:44:39 EST
Carolyn, what is the status/target of this bug?
Comment 6 Carolyn MacLeod CLA 2006-12-04 11:01:44 EST
Actually, Texts (READ_ONLY or not) only show their text content in the accessible "value" property. Here's a couple of definitions from the MSAA spec:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/wincontrols.asp

- The Name property is the text from a static text control that labels the edit control. For example, on a standard File Open dialog box such as in WordPad, the Name property for the edit control is "File name:". 

- The Value property is a single string that contains the text in the edit control.

I don't think I should override the specified behavior, because that would probably break folks who are counting on having the label of a READ-ONLY text spoken as the name. I think the text in the about dialog is a special case that the application - in this case, AboutDialog.createDialogArea, needs to override by using SWT's accessibility API. The code would be something like:

text.getAccessible().addAccessibleListener(new AccessibleAdapter() {
     public void getName(AccessibleEvent e) {
           e.result = getItem().getText();
     }
});