Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Container Node (Read 2937 times)
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Container Node
Apr 19th, 2009 at 4:49pm
Print Post  
Hi
Am using container node, user not able to resize the container node (there is no Selection handler like other nodes). Only user has to adjust the nodes inside the container node, to make container node bigger or smaller.

Is this is the only way Container node has to be smaller or bigger? like other nodes , does container node has handler to resize the container node or not??

Pls help me in this regards

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #1 - Apr 20th, 2009 at 5:24am
Print Post  
Hi,

Try this with a different HandlesStyle value. The default for ContainerNodes is MoveOnly.

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


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: Container Node
Reply #2 - Apr 20th, 2009 at 12:54pm
Print Post  
Hi

Thanks a lot for your reply and it works fine.

And one morething i would like to ask you in Container Node is, Can i have the shape of the container node as Circle or can add my own image(Circle) to the container node.

If possible can u pls post the sample code in any case

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #3 - Apr 20th, 2009 at 6:17pm
Print Post  
Hi,

At this time this is possible only by creating a subclass of ContainerNode that overrides the Draw method.

Stoyan
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: Container Node
Reply #4 - Apr 21st, 2009 at 5:47am
Print Post  
hi
thanks and can you pls post the sample sub class pls.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Container Node
Reply #5 - Apr 22nd, 2009 at 1:55pm
Print Post  
For example, this class overrides the Draw method to render containers with rounded corners:
http://mindfusion.eu/_samples/RoundedContainerNode.cs

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


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: Container Node
Reply #6 - Apr 27th, 2009 at 8:22am
Print Post  
Thanks Stoyo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint