Bug 253305 - ControlsWithLabelsExample needs to be accessible
Summary: ControlsWithLabelsExample needs to be accessible
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Scott Kovatch CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2008-11-03 16:41 EST by Carolyn MacLeod CLA
Modified: 2008-12-11 22:52 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2008-11-03 16:41:53 EST
One more aspect of SWT Accessibility is that if a control has a Label preceding it in the z-order, and if it hasn't otherwise specified its accessible name, then the preceding Label is used as its accessible name.

This is an artifact of default MSAA behavior.

To see where this is implemented in SWT Carbon, look at Label.addRelation() and its senders in Control, and their senders. Also, look at all implementors of isDescribedByLabel(). You'll also need to implement Control.addRelation(), Control.removeRelation(), and Label.removeRelation(). I think that's it...

Run ControlsWithLabelsExample for testing.
Comment 1 Scott Kovatch CLA 2008-11-05 14:54:46 EST
Fixed > 20081105. The code is essentially the same as it was in Carbon, but slightly more complicated by Cocoa's use of NSCell to provide the accessibility information for the control.