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.
![34ifyv7.jpg 34ifyv7.jpg](http://i42.tinypic.com/34ifyv7.jpg)
(Fig. 1)
![ym2pu.jpg ym2pu.jpg](http://i42.tinypic.com/ym2pu.jpg)
(Fig. 2)
![10gy8pl.jpg 10gy8pl.jpg](http://i44.tinypic.com/10gy8pl.jpg)
(Fig. 3)