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.
Unfortunately, activation email could not send to your email. Please try again.

Changing the Coursor Style

Thread ID:

Created:

Updated:

Platform:

Replies:

61855 Jun 4,2007 05:19 AM Jun 4,2007 06:49 AM Windows Forms 1
loading
Tags: Diagram
Faheem Rauf
Asked On June 4, 2007 05:19 AM

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,

Meera Fathima [Syncfusion]
Replied On June 4, 2007 06:49 AM


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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;