Some Application Windows are not Resizing
Some Application Windows are not Resizing
- Subject: Some Application Windows are not Resizing
- From: "kalpana k" <email@hidden>
- Date: Tue, 29 Jul 2008 10:35:45 +0530
Hi...
We are developing an application for which we need to resize third party
Application Windows.
I am using accessibility API's for resizing. Some of the Applications like
TextEdit, Finder, Terminal etc... are resized properly according to the
given size.
But the Applications like iTunes, DVD Player, Stickers , Chess, Photo Booth
are not resizing, even though their position can be changed.
Sample code is a as follows:
AXUIElementIsAttributeSettable (m_curWndElement, kAXSizeAttribute,
&settable);
NSLog(@"kAXSizeAttribute, settable :: %d ",settable); ----o/p == 0
AXUIElementIsAttributeSettable (m_curWndElement, kAXPositionAttribute,
&settable);
NSLog(@"kAXPositionAttribute settable :: %d ",settable); ----o/p == 1
AXError err1 = AXUIElementSetAttributeValue(m_curWndElement,
kAXSizeAttribute, newSizeRef1);
NSLog(@"err1 :: %d ",err1); ----o/p == -25205(kAXErrorAttributeUnsupported)
err1 = AXUIElementSetAttributeValue(m_curWndElement, kAXPositionAttribute,
newWindowPos1);
NSLog(@"err2 :: %d ",err1); ----o/p == 0 (kAXErrorSuccess)
Is AXUIElementRef object(i.e kAXSizeAttribute) of these applications are
settable or not??
I had checked with other sample Carbon application, its working fine.
Looking at the window in Accessibility Inspector, all the windows report
that AXSize is not a settable attribute(Writable). So, it is reporting
AXSize as a read-only property.But at the same time it is reporting
AXPosition also as a read only property, & i am able to reposition it.
So is anybody knows why the same element can be repositioned but not
resize??
why it is returning 0 when we can resize it manually??
Or is there any other way to resize the these application windows??
Thanks & Regards,
Kalpana
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden