Profile Picture

is it possible to add .net controls to the drawing view

Posted By ginnas k 12 Years Ago
Author
Message
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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



ginnas k
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

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

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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



ginnas k
biggrin Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

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



Similar Topics


Reading This Topic