Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need help chosing TableNode or ControlNode (Read 2365 times)
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Need help chosing TableNode or ControlNode
Dec 27th, 2007 at 4:47am
Print Post  
Looking at the sample InteractiveTable it seems as if there is no real way for a table cell to host a control, but rather you have to fake it by moving a control to the coordinates that are within the cell, is that correct?

That seems a bit hackish to me and since I have a fairly complex number of controls to put in my node, each with its own event handling and input filtering, I am thinking it would be better to probably create my own user control and then add it to a diagram using a ControlNode.

Is that the preferred way to do it? However if I do this how can I create rounded borders for the control node, sort of like the TableNode.Style = TableStyle.RoundedRectangle; ??

Additionally, can I still add AnchorPoints to a ControlNode?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need help chosing TableNode or ControlNode
Reply #1 - Dec 27th, 2007 at 5:55am
Print Post  
You can create non-rectangular Windows Forms control as shown here:
http://www.devx.com/dotnet/Article/21448

If you need only a few complex nodes of that kind in your diagram, use ControlNodes. If there will be a lot of them, for better performance use TableNodes, since WinForms controls are quite heavy-weight objects.

You could use a mixed solution - display the data in Table nodes, and use a ControlNode only as an editor, e.g. by creating one upon the NodeDoubleClicked event raised for a table.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: Need help chosing TableNode or ControlNode
Reply #2 - Dec 27th, 2007 at 9:51pm
Print Post  
Stoyo wrote on Dec 27th, 2007 at 5:55am:
You can create non-rectangular Windows Forms control as shown here:
http://www.devx.com/dotnet/Article/21448

If you need only a few complex nodes of that kind in your diagram, use ControlNodes. If there will be a lot of them, for better performance use TableNodes, since WinForms controls are quite heavy-weight objects.

You could use a mixed solution - display the data in Table nodes, and use a ControlNode only as an editor, e.g. by creating one upon the NodeDoubleClicked event raised for a table.

I hope that helps,
Stoyan


Thanks for the feedback. What would you consider to be a large number of controls? I would imagine at most 100, but not all in view at once. Also they are very simple controls with native sub-controls, such as dropdowns and text fields, so I imagine the overhead should be quite small and it should render quite fast.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need help chosing TableNode or ControlNode
Reply #3 - Dec 28th, 2007 at 8:51am
Print Post  
Well, I would consider 100 * (1 + the number of child controls) a large number of controls. Anyway if you wish to try that, also check this thread -
http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1181...

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