Group: Forum Members
Last Active: 12 Years Ago
Posts: 13,
Visits: 1
|
hello
i am using your drawing view as my design container at run time. so i wanted to add different .net controls on this drawing view, is it possible to add these controls on it, once we add is it possible to do the default nevron functionalities on them like cut, copy, paste, move etc. please explain how it is
regards ginnas
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hello ginnas, You can take a look at the following example: Diagram WinForm examples >> Document Object model >> Shapes >> WinForm Control Hosting
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 12 Years Ago
Posts: 13,
Visits: 1
|
hello
thanks for the response,that method for adding controls to the drawing view is working. one more thing after adding these controls on the drawing view is it possible to get the events for these controls, means by any way we needed to write some code inside these controls events, any idea about this to achieve
please replay me
regards ginnas
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
You need to subscribe to the events of the WinForm controls directlly. If you intend to make a library that contains shapes that contains hosted controls, you need to subscribe to the WinForm control events when the respective shape is added to the drawing document. You can intercept the NodeInserted event (see Diagram for .NET > User's Guide > Conceptual Overview > Diagram Services for more info on Diagram events), and then hook the events that you want for the specific control that is contained inside the NWinFormControlHostShape.
Best Regards, Nevron Support Team
|