Hi All,
I wanted to retrieve the text related information (like text's font size,name,color etc..) when mouse cursor is placed over the text.
Following ways are tried:
1) Description given in AxTextAttributedString.h
If an accessibility object represents an attributed string, the value of its attribute is an attributed string object (a CFAttributedStringRef or an NSAttributedString) that uses the constants defined in this header file to define its attributes.
-I have not seen any ways by which can get kAXParameterizedAttributeStringAttribute.
NSArray *parameterizedAttributeNames = nil;
//AXUIElementRef element;
//AXUIElementCopyParameterizedAttributeNames(element, (CFArrayRef *)¶meterizedAttributeNames);
By using above method,I get All parametrized attribute name.But when i tried to access values of those attriibute names by
-Didn't get any idea about what to provide in third parameter.
by
-It returns NULL in value.
4) Use of kAXAttributedStringForRangeParameterizedAttribute
Description: The CFAttributedStringType representation of the text associated with this accessibility object that is specified by the given range.
Also by passing this parametrized attribute to AXUIElementCopyParameterizedAttributeValue(element,kAXAttributedStringForRangeParameterizedAttribute, parameterValue,(CFTypeRef*)value), It gives NULL in value.
(Don't hvae any idea about third parameter so had parameter by creating it from AXValueCreate().
NSPoint point = [NSEvent mouseLocation];
CFTypeRef parameterValue = AXValueCreate(kAXValueCGPointType, &point);)
Can kAXAttributedStringForRangeParameterizedAttribute parameter will help me to get desired result if I provide third parameter properly?
please suggest me any possible way to get the desired result and also for above mentioned problem.
Thanks in advance.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
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