TreeView Click event position

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
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
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json