Hi Everyone.
I'm trying to create a shape script for a component that when made composite adds the .emf image to the top right hand corner.
Can conditional formating be added to the decoration shape?
Here is the script I have thus far:
//Basic Shape
decoration top_right
{
if(hasproperty("iscomposite","true"))
{
orientation="NE";
image("Expand",10,10,90,90);
return;
}
}
shape main
{
setpen(236,115,49,2);
setfillcolor(252,217,176);
roundrect(0,0,100,100,10,10);
addsubshape("namecompartment",100,100);
shape namecompartment
{
h_align= "center";
v_align= "center";
printwrapped("#name#");
}
}
If I remove the if statement it works fine, however I'd really like to only display the .emf image when the element is made composite.
Any help would be much appreciated!
Many thanks in advance.
Eddie