Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to change the TableNode's style? (Read 3033 times)
sweetdeath
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Mar 16th, 2011
How to change the TableNode's style?
Mar 22nd, 2011 at 1:54pm
Print Post  
Hi,Stoyan.The property of "TableStyle" in the Diagram are only two types for us,which are "Rectangle" and "RoundedRectangle".
Can I change the style of the TableNode into other types,such as ellipse or pentagon ?Could you tell me how to change it?
Thanks a lot!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to change the TableNode's style?
Reply #1 - Mar 23rd, 2011 at 8:08am
Print Post  
Hi,

You can't assign any other shapes to TableNodes. You could either attach a TableNode to ShapeNode to achieve that (where the table's Brush and Pen are set to transparent color), or create a custom TableNode class that overrides the Draw method to render a shape.

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: How to change the TableNode's style?
Reply #2 - Apr 11th, 2011 at 8:37am
Print Post  
Hi Stoyo

How to attach the tree to the table node?.
I saw the class diagram sample in the demo but i could not find the source code for how to attach the tree Node to the table node.

Could you please post me the sample?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to change the TableNode's style?
Reply #3 - Apr 11th, 2011 at 10:05am
Print Post  
Hi Hamid,

The AttachTo method is defined in the base DiagramNode class. You can use it to attach any type of node to any other type of node, e.g.

treeviewNode.AttachTo(tableNode, AttachToNode.TopLeft);

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: How to change the TableNode's style?
Reply #4 - Apr 11th, 2011 at 5:37pm
Print Post  
Hi Stoyo

Thanks for your reply...

But i did not achieve my goal. I need to bring the look and feel effect like your "class hierarchy diagram" sample in the Mindfusion Diagram Demo.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to change the TableNode's style?
Reply #5 - Apr 12th, 2011 at 8:54am
Print Post  
Hi Hamid,

This sample shows only TableNodes with the Row.Header property set to true for the "Methods" and "Properties" rows. This allows only for two-levels deep hierarchy. The icons are shown using the Cell.Image property of cells in the first column. The keywords are displayed in blue via the <color> tag while using EnableStyledText mode.

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: How to change the TableNode's style?
Reply #6 - Apr 12th, 2011 at 3:48pm
Print Post  
Hi Stoyo

Thanks a lot..that helped lot..

Thanks and Regards
Hamid
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint