Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic using usercontrol as node (Read 1955 times)
kdr35
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 12th, 2010
using usercontrol as node
Aug 12th, 2010 at 12:15pm
Print Post  
I am new in mindfusion , I need to help about node types.I want to use usercontrol in node. I am using standart windows control ( button , textbox) etc. but
I dont know add usercontrol in node. How  I can do it?

Thanks...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: using usercontrol as node
Reply #1 - Aug 12th, 2010 at 12:32pm
Print Post  
Create a ControlNode instance, set its Control property and add it to the diagram.Nodes collection.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kdr35
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 12th, 2010
Re: using usercontrol as node
Reply #2 - Aug 12th, 2010 at 1:22pm
Print Post  
I did as you said but  i have some problems Undecided

Firstly, I want to explain what i will do. I will do graph which has a lot of nodes that are a video player.

In diagram1_NodeCreated  Event ,  I created a panel and added media buttons(play , stop etc and video viewer) in that panel.

I want to answer some questions about my problems;

- Which Diagramwiever behaviour  I must choose   to above structer.
*I chose DrawControls but I didnt link my nodes (c# panel) when ı changed behaviour to anything such as DrawShapes I can link nodes but I dont use panel in nodes , program draws default shapes. I didnt use panel in node.

thanks for helps...








  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: using usercontrol as node
Reply #3 - Aug 12th, 2010 at 1:58pm
Print Post  
Set Behavior to LinkControls to allow drawing links between ControlNodes. That won't work if the hosted controls capture the mouse input, but it should be fine with Panels.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint