shape main
{
dockable="standard";
DrawNativeShape();
addsubshape("element",10,10,11,-10);
addsubshape("element",10,10,11,-10);
addsubshape("element",10,10,11,-10);
addsubshape("element",10,10,11,-10);
addsubshape("Circle",30,30,80,75);
shape Circle {
dockable="standard";
scalable="false";
setfillcolor(218,165,32);
ellipse(0,0,35,35);
}
shape element
{
scalable="false";
setfillcolor(255,255,255);
rectangle(00,0,-24,-18);
}
I have a script similar to this (but with a lot of if clauses but thats not important)
So now I have a nativ looking component with 4 appended elements attached to the component shape at the left upper side,
and a circle at the left bottom corner, perfect.
Now I rescale the component to a bigger then default size in the diagram but the circle and the elements now move and don't stay fixed at the components shape that I want to. I know it works if I set the the scalable="true" but I have to find a solution where it's possible that those elemens stay always at the same position relativly to the component shape.
If I have a lot of information in the component and rescale it really big the appended shapes get REALLY big and block a lot of the screen which I don't want so scalable="false" is a must in that case but without the elements moving up and down as I resize the componet.
Edit: Or how can I align or join the nativ shape with the other shapes, both have the attributes dockable="standard" but how do I "dock" it onto each other?