TreeView DragOver: over what?

0
0

I think this isn’t a specific TreeView question, anywat I had the issue using TreeView.

My event handler follows the Windows Forms counterpart

private void treeView1_DragOver(object sender, DragEventArgs e)
{
var tv = (TreeView)sender;
var position = tv.PointToClient(new Point(e.X, e.Y));
var destinationNode = tv.GetNodeAt(position);
// etc
}

But GetNodeAt doesn’t exist on Wisej.Web.TreeView.

Digging a bit more, I found that GetChildAtPoint doesn’t exist either.

Questions:

  1. On DragOver how do I find the control under the mouse?
  2. Given a position how do I find the (top) control at that position?
  • You must to post comments
0
0

Hi Tiago,

both WJ-8355 and WJ-8359 are added in Wisej 1.3.82

Best regards
Frank

  • You must to post comments
0
0

So I did, thus this post. It happens to be null on the DragOver event. Sorry I forgot to mention it, but I assumed it was null by design.

  • You must to post comments
0
0

Hi Tiago,

the next Wisej build will include the following 2 enhancements:

WJ-8355 – Add Control.GetChildAtPoint() to retrieve control at specified coordinates

WJ-8359 – Add DropTarget to DropMove event

Best regards
Frank

  • You must to post comments
0
0

Hi Tiago,

to determine the target of a Drag/Drop operation, please take a look at DragEventArgs.DropTarget

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.