I’m developing a custom C# component which has a custom attribute to override the appearance of the component. I’m trying to figure out how to change the mouse cursor when the cursor enters to a specific region, but I couldn’t.
Could somebody advise me please?
public override GH_ObjectResponse RespondToMouseMove(GH_Canvas sender, GH_CanvasMouseEvent e)
{
if (tmprect.Contains(e.CanvasLocation)){
//change cursor
}
return base.RespondToMouseMove(sender, e);
}
Thank you.