I've tried using the script below, but no extra compartment with package contents is shown. Only when I use the "DrawNativeShape()" command, it works. But I want to add a compartment to a custom shape... So what should I change to add a compartment to the custom shape below?
shape main{
noshadow = "TRUE";
h_align = "center";
v_align = "center";
if(hastag("Macroprocess Type","Management"))
{
//Blue color scheme
//setfillcolor(0,204,255);
//Grey / Orange color scheme
setfillcolor(200,200,200);
}
if(hastag("Macroprocess Type","Primary"))
{
//Blue color scheme
//setfontcolor(255,255,255);
//setfillcolor(0,43,255);
//Grey / Orange color scheme
setfillcolor(255,140,0);
}
if(hastag("Macroprocess Type","Supporting"))
{
//Blue color scheme
//setfillcolor(142,237,255);
//Grey / Orange color scheme
setfillcolor(225,225,225);
}
startpath();
moveto(0,0);
//lineto(15,50);
lineto(0,100);
lineto(85,100);
lineto(100,50);
lineto(85,0);
lineto(0,0);
endpath();
fillandstrokepath();
printwrapped("#NAME#");
//DrawNativeShape();
}
//Add compartments for Child elements.
shape ChildElement
{
//So set the compartment name to "Contents".
SetCompartmentName("Contents");
//Add the child elements name to the child compartment.
AppendCompartmentText("#NAME#");
}