Extending Nevron Diagram


Author
Message
Elia Dal Santo
Elia Dal Santo
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1
Hi

We're currently in the process of developing an application that let's our users crete diagrams, and we were evaluating Nevron Diagram to achieve this.

However, some of the features we require are not present out-of-the-box, so I was trying to find out how to extend nevron diagram but in this reguard I must admint I find the documentation a bit lacking

In particular, is there any documentation/examples that explains how to create our own custom drawing tools, place them on the bar manager's Tools toolbar and use them?

Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Elia,

If you need a tool to create custom shapes, you may take advantage of the NCreateShapeTool and set the shape you want to create to its Shape property. The following is a simple example that demonstrates you how to create a tool that places a button shape on the diagram:

 

Button button = new Button();

button.Text = "Button";

 

NCreateShapeTool createButtonTool = new NCreateShapeTool();

createButtonTool.Name = "Create button tool";

createButtonTool.Shape = new NWinFormControlHostShape(button);

 

If you want the control to be active even when the shape is not currently selected set the DeactivateOnLostFocus property of the NWinFormControlHostShape to false.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search