IOleWindow

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

IOleWindow

Post by atom » Tue Apr 10, 2012 6:06 pm

Hiya,

We have a menu bar that is not recognisable to Ranorex Spy
However "Inspect" tool from Microsoft SDK recognises the menu items fine as IOleWindow objects
Not an expert here, but why cant ranorex find such items?

Thanks,
Clayton

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: IOleWindow

Post by Support Team » Wed Apr 11, 2012 1:57 pm

Hi,

Can you send us a sample with the specific menu bar because this will allow us analyzing the issue or at least a Ranorex Snapshot file of it, a screen shot of the Inspect tool, when the specific menu bar is shown, and more general information about the menu bar?
It is a custom control, which technology is used, which Ranorex version are you using, which Os and Bit version, ...?
Following link will show you how to generate a snapshot file:
http://www.ranorex.com/support/user-gui ... files.html

Thanks in advance!

Regards,
Markus
Ranorex Support Team
.
Image

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: IOleWindow

Post by atom » Wed Apr 11, 2012 2:44 pm

OS = Windows 7 x64
Application = x86
Ranorex Version = 3.2
Ranorex Spy = x86
spy.PNG
spy.PNG (41.1 KiB) Viewed 1194 times
inspect.PNG
inspect.PNG (52.67 KiB) Viewed 1194 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: IOleWindow

Post by Support Team » Wed Apr 11, 2012 9:05 pm

It looks like the MSAA implementation of that toolbar is broken. The toolbar does not return any children that's why Ranorex Spy cannot get from the toolbar to the individual menu items on the toolbar.

I guess that the "FromPoint" functionality is correctly implemented, that's why Inspect shows the individual items. Ranorex Spy does not show the menu items, since there is no way to get to the items at runtime with the toolbar having no children. (Ranorex Spy cannot get to the menu items using the element tree.)

In other words: The top-down (FromPoint) MSAA implementation of the toolbar looks OK, but the bottom-up structure/implementation does not, since the toolbar does not have any children.

It's just a guess without having access to the application, but we have seen such incorrect MSAA implementation with some toolbars already :?

Regards,
Alex
Ranorex Team
.
Image