Hello everyone!
I'm new here and I need your help. I have problem with one of example script in Enterprise Architect User Guide
// EDITABLE FIELD SHAPE
shape main
{
rectangle(0,0,100,100);
addsubshape("namecompartment", 100, 20);
addsubshape("stereotypecompartment", 100, 40);
shape namecompartment
{
h_align = "center";
editablefield = "name";
rectangle(0,0,100,100);
println("name: #name#");
}
shape stereotypecompartment
{
h_align = "center";
editablefield = "stereotype";
rectangle(0,0,100,100);
println("stereotype: #stereotype#");
}
}
What should I do to autoresize my shape depends on how long is my #name#. In this example when the #name# is too long it is out of the rectangle.
I hope you understand me becouse my english is not very good:)