Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: floerio on June 25, 2009, 04:06:24 pm
-
Hi!
Is it possible to create shapes with a transparent background? I want to create a simple shape that depicts a frame (to group elements on a screen, like radio buttons). I need it as shape because I have to add some tagged values for documentation, therefore I can not take the EA boundary.
But every shape is filled with a definite color but this is what I want to prevent because I WANT to see the background of the groundlaying element.
Any idea?
Cheers,
Oliver
-
You can do it in a shape script. By default, if you do something like this
shape main
{
rectangle(0,0,100,100);
}the rectangle is filled with the default fill colour and edged with the default border colour. If you want to change that behaviour, you can try one of the following:
shape main
{
startpath();
rectangle(0,0,100,100);
endpath();
fillpath();
}The fillpath() command will fill the rectangle with the default fill colour but not draw the border.
shape main
{
startpath();
rectangle(0,0,100,100);
endpath();
strokepath();
}The strokepath() command will draw the border with the default border colour but not fill the shape.
shape main
{
startpath();
rectangle(0,0,100,100);
endpath();
fillandstrokepath();
}The fillandstrokepath() command will draw the border and fill the shape.
You want the strokepath() version.
-
Yepp! That did the trick :-)
Thanks for the fast reply!
Oliver