UI Automation Com wrapper not finding child controls - ui-automation

I have a context menu (PopupMenuControlTrusted control from infragistics)
Using inspect.exe I can find the menu and sub menu items with no trouble
Using UI Automation Verify (http://uiautomationverify.codeplex.com/) I can find the menu item with some difficulty
I need to hover over the control to find it, at this point the context menu is found with the correct window handle but no children.
I have to then tell the program to find the context menu again at which point all the child menu items are found.
When I do this by code I can never find the children, TreeWalker.RawWalker.GetFirstChild(menu) is always returning null
I am referencing the UIAComWrapper (same as used in the UI Automation Verify tool)
I have tried using the ControlWalker, sending a CacheRequest.Current on the element but I am unable to find any child elements
Has someone had this problem before or can give me any guidance as what else to do?
Edit
I have actually found out that AutomationElement.FromPoint can find the inner element and from there I can use the tree walker to find the parent, the parent turns out to be the menu that I had before, but i still cannot find child elements from the menu, can anyone explain this? I am confused here

Related

Unity UIToolkit Overflow doesn't work well when I set parent element in script

I'm currently working on a minimap using UI toolkit. Map element is removed from the children of the minimap_mask when Activating the entire map. #Active entire map.img
map element is added as the Child of minimap_mask when invalidating the entire map. #Active mini map.img
if I go ahead, the situation is similar to the picture.
#minimap.img
In this situation, If I set the Overlap hidden -> visible -> hidden in uitoolkit debugger, it shows correctlty #UIDebugger.img
I tried adjusting the overflow on the script, but I wasn't able to solve it. Any help would be appreciated.

Is it possible to add search filter/box to a tree view component?

Im making an extension and I'm curious is it possible to add a search filter/box to a tree component?
Im currently coding the extension in javascript but im not sure if its possible or not
This is what i want to add in at the top of my tree view
It will be built-in to vscode in v1.70. Here it is working in a treeView that I wrote for vertical tabgroups:
The placement of the find widget is a little unfortunate right now.
WHen you have focus in the treeView Ctrl+F is bound to the command list.find which brings up the Find in list/treeView widget.
You need to enable the filter option icon to see it work.

Protractor - Drag and Drop for Drag-able Items Container

I was trying to use browser.actions().dragAndDrop(dragElement, dropElement).perform(); but i couldn't able to find the elements from the page which i'm working on. The elements are placed in the below format and i'm wondering how to find one of the element and drag it to another side. Do anyone have an idea on this or faced similar task?
ANALYSISGENERIC_ANALYSISACTIONACTIONHRCHTYPECHTEMPCHDURATIONCHLIGHT

How to add tooltip entries for items in Eclipse SWT combo

The exact already asked question to what I'd like to do is: how to add tooltip on the entries and not the combo....
I cannot use a CCombo. JoeYo said that he solved it by using a DefaultToolTip class on the Combo, but he didn't elaborate.
Can anyone, (#JoeYo hopefully) give me a bit more detail how to got the handle on the list, once dropped, to capture the mouse hover events, and then of course display the tool tip?
If I was supposed to ask for more info on the original question, I could not figure out how. I tried to comment, but was told I did not have enough credits.
DefaultToolTip is part of JFace. Other than the native tooltip of the platform, it can be freely positioned and shown/hidden. Internally it is comprised of a Shell that when shown stays on top of all other controls.
In combination with a MouseListener, the getVisibleItemCount() and getItemHeight you might be able to compute above which item (if any) the mouse cursor hovers and show a tooltip with suitable content.
This answer has a snippet that computes which item of a List widget is under the mouse pointer. It should be possible to adapt it for the Combo widget. The remaining difficulty is probably to figure out the of the drop-down and the gap between of the Combo and its drop-down.

SWT Tree, JFaces, TreeViewer

Could you give me some ideas on how I can achieve this.
I have SWT Tree with me, which is managed by means of Tree Viewer.
I want every item in the tree to be editable (I mean, if you put mouse on it and start editing its string value , it should change). But the Root item should not change.
User should not be able to modify the top item's name.
As of now Editing Support is provided for all the items in the tree including the top item.
But top item shouldn't be editable.
Kindly give me some idea about it.
Regards,
Venkata Vineel.
If you use JFace you should set a org.eclipse.jface.viewers.EditingSupport implemetation on your org.eclipse.jface.viewers.TreeViewerColumn. The editing-support class has a method org.eclipse.jface.viewers.EditingSupport.canEdit(Object) you have to implement and that should return false for your top-items. For some examples how to use TreeViewers, EditingSupport and all the other stuff regarding JFace see also the JFace Snippets page.