Hallo,
is there any way to only get a direkt right click on a node? The GetElementAtPoint get's the node even if the cursor is outside of the (visible part) of the node but at the same hight (I think this is the same reason why the hottrack reacts outside of the visible part of the node)
I'd use the NodeMouseClick but the event args aren't derived from MouseEventArgs so there is no MousePosition/MouseButton (I think this should be changed)
private
void
radTreeView1_MouseDown(
object
sender, MouseEventArgs e)
{
if
(e.Button == System.Windows.Forms.MouseButtons.Right)
{
TreeNodeElement el = radTreeView1.ElementTree.GetElementAtPoint(e.Location)
as
TreeNodeElement;
...
}
}
So I need to distinguish between a direkt right click on a node and a right click on the treeview (the white part)