Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creating custom shape (Read 1150 times)
galgu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Feb 4th, 2009
Creating custom shape
Feb 4th, 2009 at 10:54am
Print Post  
Hi,

I'm trying to build the following shape (Fig. 1), but I'm having trouble to keep its form once the user resizes it (Fig. 2 and 3) due to the fact that the declaration of the shape is relative. How can I keep the line and text left anchor point fixed?

Here's what I used to declare my shape:

MindFusion.Diagramming.Shape shape =
new Shape(//Outlines
new ElementTemplate[]
{
new RoundRectangleTemplate(0, 0, 100, 100, 1)
},
//Decorations
new ElementTemplate[]
{
new LineTemplate(16, 0, 16, 100)
},
// Text area
new ElementTemplate[]
{
new RoundRectangleTemplate(17, 0, 100, 100, 10)
}, System.Drawing.Drawing2D.FillMode.Winding, "MyControl");

Thanks,

Gal.


(Fig. 1)


(Fig. 2)


(Fig. 3)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Creating custom shape
Reply #1 - Feb 4th, 2009 at 11:22am
Print Post  
You can't use a custom Shape for this. Try TableNodes with fixed-width first column and CaptionHeight = 0, or custom-drawn ShapeNodes.

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