VoiceOver, Carbon, and AXDateField
VoiceOver, Carbon, and AXDateField
- Subject: VoiceOver, Carbon, and AXDateField
- From: Carolyn MacLeod <email@hidden>
- Date: Mon, 22 Oct 2007 11:48:13 -0400
Hello.
I have a Carbon ClockControl with type
MonthDayYear.
When this control gets focus, the AccessibilityInspector
sees an AXDateField with 3 special AXTextFields named AXDayField, AXMonthField,
and AXYearField.
VoiceOver doesn't read this as a date,
i.e. it only reads the numeric values of the text fields. For example,
when the month field has focus all I hear is "10 edit text".
VoiceOver does read the date of a Cocoa
NSDatePicker control, so I decided to make my Carbon control emulate Cocoa's
AXDateTimeArea role.
Questions:
1) Do I really have to do this? Or is
there a way to get VoiceOver to read the Carbon date control so that I
don't have to make the control pretend to be Cocoa?
2) Is there any doc for the AXDateTimeComponents
attribute? I am just guessing that day, month, year is 244, but it would
be nice to see some doc.
3) Is there any doc for the AXValue
to return for an AXDateTimeArea? Can I just return typeLongDateTime with
the LongDateTime from my Carbon control (kControlClockLongDateTag)? Or
do I have to convert it to a CFDateRef or some other date format?
Thank-you,
Carolyn _______________________________________________
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