Page 1 of 1

IOleWindow

Posted: Tue Apr 10, 2012 6:06 pm
by atom
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

Re: IOleWindow

Posted: Wed Apr 11, 2012 1:57 pm
by Support Team
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

Re: IOleWindow

Posted: Wed Apr 11, 2012 2:44 pm
by atom
OS = Windows 7 x64
Application = x86
Ranorex Version = 3.2
Ranorex Spy = x86
spy.PNG
inspect.PNG

Re: IOleWindow

Posted: Wed Apr 11, 2012 9:05 pm
by Support Team
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