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

Bug 25629

Summary: Need STATE_SYSTEM_LINKED mapped to one of the states in ACC.
Product: [Eclipse Project] Platform Reporter: Dorian Birsan <birsan>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: grant_gayed, konradk
Version: 2.1Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dorian Birsan CLA 2002-11-01 09:52:20 EST
I need to enable the F1 infopops for being readable by JAWS, and currently one 
cannot read the "hyperlinks" in the infopop without tabbing to each one of them.

To enable the above I need to have STATE_SYSTEM_LINKED mapped to one of the 
states in ACC.
Comment 1 Grant Gayed CLA 2002-11-04 08:42:00 EST
Moving to Chris since he's currently living in win32 land.
Comment 2 Carolyn MacLeod CLA 2004-04-29 15:25:36 EDT
Taking ownership.
Comment 3 Carolyn MacLeod CLA 2004-04-29 16:02:27 EDT
Fixed > 20040429.

We added 2 new constants to ACC:
1) ROLE_LINK
2) STATE_LINKED

According to the MSAA documentation:

ROLE_SYSTEM_LINK 
The object represents a link to something else. This object might look like 
text or a graphic, but it acts like a button. 

STATE_SYSTEM_LINKED 
Indicates that the object is formatted as a hyperlink. The object role will 
usually be ROLE_SYSTEM_TEXT. 


It's not very clear from the documentation what you would want to implement.
So I have looked at a bunch of web pages in IE using the MSAA inspector to see 
what they do, and here's what (I think) you want to do to be consistent...

Looking (very quickly) at your HyperlinkLabel class, I see you have a Canvas 
with a Label child. I think you want the Canvas to have ROLE_LINK, and the 
Label to have ROLE_TEXT. For the states, the Canvas should have 
STATE_FOCUSABLE | STATE_LINKED (and | STATE_FOCUSED if it has focus) and the 
Label should have STATE_READONLY | STATE_FOCUSABLE | STATE_SELECTABLE | 
STATE_LINKED (and | STATE_FOCUSED if the Canvas has focus).

Hope this helps.
Comment 4 Konrad Kolosowski CLA 2004-05-05 02:16:44 EDT
Thanks Carolyn.  I used the roles you suggested and F1 links are read by 
Windows narrator.
Comment 5 Carolyn MacLeod CLA 2004-05-05 02:35:17 EDT
You're welcome. I'm glad you had a chance to use them before M9.