Hi,
I have customized GoNode objects on the view and would like to show
special cursor (ex: “SizeAll”) whenever user hovers mouse on them.
What I have done is the following:
public class CustomNode : GoNode
{
string cursorName = “Normal”;
public override string GetCursorName(GoView view)
{
return cursorName;
}
public override bool OnHover(GoInputEventArgs evt, GoView view)
{
cursorName = “SizeAll”;
return base.OnHover(evt, view);
}
public override bool OnEnterLeave(GoObject from, GoObject to, GoView view)
{
if (from == this)
{
cursorName = "Normal";
return base.OnEnterLeave(from, to, view);
}
} Is this the right way to get custom cursor on mouse hover over GoNode? Thanks/-