We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Changing the Coursor Style

Hi, I am trying to change the courser type. But it is not effecting, I am using the following code.
this.diagram1.Controller.Cursor = Resources.Cursors.Connect;
this.diagram1.Controller.Cursor = Cursors.Hand;
but the Courser does not changes. Please guide me I will be thankful to you. i am working on latest Syncfusion version.

Regards,

1 Reply

MF Meera Fathima Syncfusion Team June 4, 2007 10:49 AM UTC


Hi Ali,

I was able to see the issue that you have mentioned here. Could you please open a new DT incident with the subject of this forum? So that you can follow-up with that incident to get more details about the status of the issue.

Thank you for bringing this issue into our attention.

However you can work around the condition by setting the ActionCursor property of the current active tool within the DiagramViewerEventSink.ToolActivated() event method.

I have attached the sample image for your reference -
http://websamples.syncfusion.com/samples/Diagram.Windows/F61855/main.htm

Below is the sample code snippet that shows above information.

((DiagramViewerEventSink)diagram1.EventSink).ToolActivated += new ToolEventHandler(Form1_ToolActivated);

void Form1_ToolActivated(ToolEventArgs evtArgs)
{
if (evtArgs.Tool is SelectTool)
{
Tool tool = this.diagram1.Controller.ActiveTool;
tool.ActionCursor = Resources.Cursors.Connect;
}

if (evtArgs.Tool is MoveTool)
{
Tool tool = this.diagram1.Controller.ActiveTool;
tool.ActionCursor = Cursors.Hand;
}
}

Please let me know whether above details provided are helpful to you.

Thanks,
Meera.

Loader.
Live Chat Icon For mobile
Up arrow icon