[SOLVED] TreeView Click event position

Answered Closed
0
0

Hi guys,

The NodeMouseClick fires now for the right-click as well. However, it seems that the position in y is incorrect. Using the following code:

private void tv_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
cms.Tag = e.Node;
cms.Show(tv, e.Location);
}
}

where tv is the TreeView and cms is a ContextMenu, which I would like to show at the position clicked by the mouse (on the node), I get the ContextMenu at the right x position but at the wrong y position, at the top of the TreeView. So I suspect the e.Location has incorrect y.

Best,
Alex

  • You must to post comments
Best Answer
0
0

Hi Alex,

WJ-7654 is also included in build 1.2.68.

Best regards
Frank

  • You must to post comments
0
0

Y is relative to the node – it should be relative to the TreeView. It’s logged as WJ-7654.

  • You must to post comments
Showing 2 results