Hi,
On double clicking of a node I need to add it within a grid, that functions well as long as the user does not double click anywhere else in the control, that is the white space within the control or the scroll bar!!!....in those cases the double click event also fires and wrecks the app.
NodeDouble click is of no use as it only gives functionality about expanding....why can't you simply have a node double click even and leave the user to use it. Any workarounds for the situation. at present I am planning to set up some flags on mouse enter or mouse down....ughhhhh......the double click handling seems ugly to me....
DoubleClickRow is an event of the WinGrid, not the tree.
Not sure where NodeDoubleClick came from. I guess I was assuming that the original poster was referring to an event, but you are right, there is no such event.
Using MouseDoubleClick is a good idea. You can use the tree's GetNodeFromPoint method to find the node that was double-clicked.
After looking at the user guide one more time I just answered my own question.
There is a 'MouseDoubleClick' event in addition to the standard 'DoubleClick' event.
The difference is that the MouseDoubleClick passes the location info in the 'e' argument so this can be used to determine which node, if any, was double clicked.
The suggestions in this thread say to use one of the following events: NodeDoubleClick DoubleClickRow
but neither of these events exist in your WinTree control. (I am using version 2011.2)
Currently I am having to store the click position when the MouseDown event fires and then use GetNodeFromPoint() in the DoubleClick event.
This is not a great solution since the code is not localized and therefore prone to error.
Is there a way to determine the click position of the double click itself (in the Doubleclick event) or some other way of determining which node (if any) the double click occured on.(As with the original reporter I have a custom double click action.)
You could use the DoubleClickRow event.
Hey Mike,
Could you please let me know if there is any way we can capture the event whether user clicked on a row or some other part of the UltraGrid?.. so that we can handle the doubleclick and not fire the event.
Thanks In Advance