When i RightClick on TreeView (b) item it pops a menu(think like Menu items it pops Add,Remove,Rename).
I am findig out the Abosolute cursur position by
[ ] pCursor = Cursor.GetPosition()
[ ] iY = pCursor.y - TreeRect.yPos
[ ] iX = pCursor.x - TreeRect.xPos
[ ] wWindow.Click(2,iX,iY)
When i am trying out this one First Time it Works Fine and for the Second time TreeView(b) goes to Edit mode and it opens Undo,redo as when we rename(Single click) any Folder in Windows and Right Click.There my Script is Getting Failed(As it should open Menu).
If the Focus is on TreeView(b)(selected) upon Right Clicking by wWindow.DoubleClick(2,iX,iY)
it Goes to Edit Mode.Can Any one Help me out in Solving the problem.As i need to Create many childs for the same node i use forLoop for Creating childnodes and the Path will be Similar.As B gets Selected first time it works fine and opens the DropdownMenu but when in Second iteration the Focus will be in B as it is already Selected it goes to
My object is an HtmlText, I need to double click the object to expand the TreeView. I have tried PressMouse, MoveMouse and ReleaseMouse and DoubleClick. It worked once and does not work again. Does anyone have an idea of how to resolve this issue.
Rakesh, I had already tried the method you suggested, expect the OpenContextMenu. Its not an editable tree view. I changed couple of things around in my Extension. It still doesn't recognize the DOMObject as a TreeView, but I am able to finally get it to work to do a DoubleClick on HtmlText.