Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to create a box with a certain shape (Read 2044 times)
chuckdawit
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Sep 4th, 2009
How to create a box with a certain shape
Sep 8th, 2009 at 11:36pm
Print Post  
I'm attaching a small box to the bottom of the larger shape and I want to create the smaller shape to make it look like an upside down house. How do I modify the properties to do that?

Box textBox = flowChart1.CreateBox(10, 10, 50, 30);
textBox.PolyTextLayout = true;
textBox.EnableStyledText = true;
textBox.Text = "Pairs Model 0625";
textBox.Selected = false;
textBox.Style = BoxStyle.RoundedRectangle;


Box textBox1 = flowChart1.CreateBox(12, 40, 10, 10);
textBox1.PolyTextLayout = true;
textBox1.EnableStyledText = true;
textBox1.Text = "A";
textBox1.Selected = false;
textBox1.AttachTo(textBox, AttachToNode.BottomLeft);
textBox1.Locked = true;
textBox1.Brush = textBox1.Brush;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to create a box with a certain shape
Reply #1 - Sep 10th, 2009 at 3:18pm
Print Post  
The"OffpageReference" predefined shape looks a bit like upside-down house, so you might set textBox1.Shape = ShapeTemplate.FromId("OffpageReference");

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