Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ContainerNode (Read 2839 times)
ReligioX
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Oct 24th, 2009
ContainerNode
Oct 24th, 2009 at 11:38am
Print Post  
Hi everybody!

I'm using the containernode in my project and wonder if there will be more features in the future.

The node doesn't allow custom drawing, nor separate styles of caption and drawing area.

Have I missed something?

I would appreciate to use the caption like a shapenode (with all its abilities), maybe even different styles if unfolded and folded up.

Please help or keep in mind for the next releases.

Thanks!

Sincerely, Siegfried Kornschober
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ContainerNode
Reply #1 - Oct 24th, 2009 at 5:47pm
Print Post  
Hi,

We've recently made ContainerNode derive from ShapeNode in the Silverlight version of the control, and this should come soon to the other platforms we support. For the time being, you might derive the ContainerNode class and implement custom drawing as shown here:
http://mindfusion.eu/_samples/RoundedContainerNode.cs

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


I love YaBB 1G - SP1!

Posts: 10
Joined: Nov 3rd, 2009
Re: ContainerNode
Reply #2 - Nov 3rd, 2009 at 6:10pm
Print Post  
In the FlowChart Pro version, I was wondering if the ContainerNode has the ability to be dragged and dropped like the ShapeNode from a toolbar, as I can't seem to find any documentation on this. Any ideas?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ContainerNode
Reply #3 - Nov 4th, 2009 at 10:54am
Print Post  
The ShapeToolbar and ShapeListBox controls support only ShapeNodes. You could create a custom listbox as shown in the Flowcharter example and add a container to the list.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: Nov 3rd, 2009
Re: ContainerNode
Reply #4 - Nov 5th, 2009 at 9:34pm
Print Post  
Hey,

Thanks, that helped. I have a new question though. I am trying to copy a containernode and it's contents, but as of now I can't figure out programically how to find what the containernode actually contains. Is there a method to find the indexes of the nodes contained or some other way of telling?

-Dave
  
Back to top
 
IP Logged
 
DSspirit
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Nov 3rd, 2009
Re: ContainerNode
Reply #5 - Nov 5th, 2009 at 9:39pm
Print Post  
I think I just found it in the ContainsRecursively method.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ContainerNode
Reply #6 - Nov 6th, 2009 at 8:44am
Print Post  
You can loop over container.SubordinateGroup.AttachedNodes to find what's in the container.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint