Suppling title ui element for an edit text control?
Suppling title ui element for an edit text control?
- Subject: Suppling title ui element for an edit text control?
- From: Tomas Zahradnicky <email@hidden>
- Date: Sun, 22 Jan 2006 21:58:25 +0100
Dear accessibility developers,
I'm currently trying to set kAXTitleUIElementAttribute for a Carbon
Unicode Edit Text control that gets created from a nib and have
problems to get the title ui element working.
I have noticed that the static text gets kAXTitleUIElementAttribute
with <array of 0> instead of <array of 1> items. When I try to do the
same on a button, it works.
Is there something I have missed?
The code I use is:
titleElement = AXUIElementCreateWithHIObjectAndIdentifier( staticText, 0 );
HIObjectSetAuxiliaryAccessibilityAttribute(
editText,
0,
kAXTitleUIElementAttribute,
titleElement
);
thisElement = AXUIElementCreateWithHIObjectAndIdentifier( editText, 0 );
array = CFArrayCreate(
kCFAllocatorDefault,
(const void**)&titleElement,
1,
&kCFTypeArrayCallBacks
);
HIObjectSetAuxiliaryAccessibilityAttribute(
staticText,
0,
kAXServesAsTitleForUIElementsAttribute,
array
);
Thanks,
Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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