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.

sub classing the controller

Thread ID:

Created:

Updated:

Platform:

Replies:

27190 Apr 7,2005 10:29 AM Apr 8,2005 05:20 PM Windows Forms 3
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On April 7, 2005 10:29 AM

HI, I am attempting to subclass the controller class and am having an issue with objects once they are added to the model. they display fine but the controller appears to no longer recognize any tools such as select or move. I guess I expected to retain all functionality when inheriting from the controller class, and overriding/extending those items I wanted as I needed. Is this an incorrect assumption. Do I need to add all my own tools or am I doing something wrong? thanks, Steve

Administrator [Syncfusion]
Replied On April 7, 2005 07:22 PM

Hi Steve, Looks like you have used the Syncfusion.Windows.Forms.Diagram.Controller type as the base for your subclassed Controller. Interactive tools are actually registered by the Syncfusion.Windows.Forms.Diagram.DiagramController class, a subclass of the Controller type that is used by the Diagram control. It is the DiagramController class that you should set as the base for your subclassed Controller. Regards, Prakash Surendra Syncfusion Inc.,

Administrator [Syncfusion]
Replied On April 8, 2005 09:42 AM

Great that worked like a charm. By the way the reason I used the controller class was per your example in the Knowledge base documentation: http://www.syncfusion.com/support/kb/diagram/Default.aspx Steve

Administrator [Syncfusion]
Replied On April 8, 2005 05:20 PM

Steve, Thanks for pointing that out. The knowledgebase article has been corrected. Prakash Syncfusion Inc.,

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.

;