Is there a way to set a fill color in a shapescript, but still allow users to change the fill color in a diagram?
This is my shapescript:
shape main
{
setfillcolor(255,128,128);
rectangle(0, 0, 100, 100);
addsubshape("typecompartment", 100, 20);
addsubshape("namecompartment", 100, 20);
addsubshape("notescompartment", 100, 60);
shape typecompartment
{
h_align = "center";
v_align = "center";
bold = "true";
rectangle(0, 0, 100, 100);
print("Datavalidatieregel #TAG:ConstraintID#");
}
shape namecompartment
{
h_align = "center";
v_align = "center";
editableField = "name";
rectangle(0, 0, 100, 100);
printwrapped("#name#");
}
shape notescompartment
{
h_align = "left";
editableField = "note";
println("");
printwrapped("{#notes#}");
}
}