I am trying to capture the mouse location(hover) and trying to display a tooltip based on the text that is highlited.
For that i am doing this
var p = e.GetPosition(null);
DocumentPosition position = new DocumentPosition(this.ArcEditor.Document);
position.SetPosition(p.ToPointF());
var pBox = position.GetCurrentInlineBox();
But my position is always pointing to the same location. My mouse coordinates(p) are changing with the mouse move but documnet position is not set properly.
Can someone help me on this.
Thanks in advance.
For that i am doing this
var p = e.GetPosition(null);
DocumentPosition position = new DocumentPosition(this.ArcEditor.Document);
position.SetPosition(p.ToPointF());
var pBox = position.GetCurrentInlineBox();
But my position is always pointing to the same location. My mouse coordinates(p) are changing with the mouse move but documnet position is not set properly.
Can someone help me on this.
Thanks in advance.