Re: Accessibility for a custom text editor
Re: Accessibility for a custom text editor
- Subject: Re: Accessibility for a custom text editor
- From: Felipe Monteiro de Carvalho <email@hidden>
- Date: Thu, 19 Jan 2012 21:49:41 +0100
Hello,
Continuing, I found some posts which say that one needs to implement a
lot of parameters to get VoiceOver to talk correctly =(
http://lists.apple.com/archives/accessibility-dev/2011/Apr/msg00008.html
So I am trying to implement them ...
My main issue here is that when I implement my value for
AXRoleDescription, everything works perfectly, it can even speak my
role:
else if lInputPasStr = 'AXRoleDescription' then
begin
if lLazControl.AccessibleDescription = '' then Exit;
CreateCFString(lLazControl.AccessibleDescription, lOutputStr);
SetEventParameter(AEvent, kEventParamAccessibleAttributeValue,
typeCFStringRef,
SizeOf(CFStringRef), @lOutputStr);
FreeCFString(lOutputStr);
end
But if in the same event handler I try to set a CFStringRef to a
AXValue or AXStringForRange then it doesn't work! is special code
necessary for either of those? How do I output the
else if (lInputPasStr = 'AXValue') or (lInputPasStr =
'AXStringForRange') then
begin
if lLazControl.AccessibleValue = '' then Exit;
CreateCFString(lLazControl.AccessibleValue, lOutputStr);
SetEventParameter(AEvent, kEventParamAccessibleAttributeValue,
typeCFStringRef,
SizeOf(CFStringRef), @lOutputStr);
FreeCFString(lOutputStr);
end
It shows as "null" in the accessibility inspector =( and it also shows
"unexpected extra attribute"
Any ideas what could be wrong?
--
Felipe Monteiro de Carvalho
_______________________________________________
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