Re: Role descriptions for custom controls
Re: Role descriptions for custom controls
- Subject: Re: Role descriptions for custom controls
- From: Ricky Sharp <email@hidden>
- Date: Thu, 6 Jul 2006 17:40:49 -0500
On Jul 3, 2006, at 1:57 PM, Ricky Sharp wrote:
There are two UI elements I have that may be a bit tricky. One is
what I call a "value field". Basically, it's a non-editable text
field paired with steppers (aka little arrows). But rather than
being two separate UI elements, I have a single control/cell that
encapsulates both. I'm thinking of using a role of
NSAccessibilityIncrementorRole. I'll also not only allow the
default inc/dec actions, but a "set value" action as well to set an
arbitrary value within the min/max range.
I did use the incrementor role for this and it works quite well.
The second element is what I call a "switch group" (NSMatrix
subclass). Basically a multiple-select group. Not really sure if
NSAccessibilityListRole fits here, so I may need to look at
alternatives. I guess the cells themselves could be checkbox roles
since they work exactly as checkboxes; they toggle on/off. But the
matrix itself would need a role and so perhaps
NSAccessibilityGroupRole.
I've noticed that Apple doesn't do any special handling for stuff
like this. For example, if one creates a matrix of square push-
buttons and set those buttons to be of type on/off, the role for
those buttons are still "button". VoiceOver then only speaks
"button" when you hover over (or set the focus to) them. VoiceOver
doesn't speak any "state" info since the value attribute isn't
added. I think this is a bug and I don't mind filing one.
What I opted to do in my case where I have a matrix of toggle buttons
is to have my matrix subclass use the default NSMatrix role of "list"
and have the toggle buttons (cells) use a role of "checkbox". While
the toggle buttons do not physically appear like a traditional
checkbox, they do indeed have the same behavior (i.e. two states).
Has anyone else created a matrix of toggle-style buttons and made it
accessible? If so, is my implementation similar?
Thanks,
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden