Hi
AN element is defined by a shape script to be a parellogram and includes an identifier placed in the top left corner.
When used on a diagram this element is displayed correctly but when resized the text in the top left is not adjusted and is now outside the shape.
Is there a way of fixing this?
THnaks
shape main
{
noShadow=true;
fixedAspectRatio = "true";
DefSize(100,100);
setfillcolor(255,255,255); // default is white
if (HasTag('GSN Status','Completed'))
{
setfillcolor(0,176,80);
}
if (HasTag('GSN Status','Work In Progress'))
{
setfillcolor(255,192,0);
}
if (HasTag('GSN Status','Behind Schedule'))
{
setfillcolor(255,0,0);
}
if (HasTag('GSN Status','Not Required Now'))
{
setfillcolor(0,176,240);
}
startpath();
moveto(10,0);
lineto(100,0);
lineto(90,70);
lineto(0,70);
lineto(10,0);
endpath();
fillandstrokepath();
SetOrigin("NW",15,5);
addsubshape("Name", 200,20);
AddSubShape("title");
shape Name
{
bold=true;
print("#NAME#");
}
shape title
{
bold=false;
if (HasTag('Title'))
{
print ("#TAG:Title#");
//print ("asdasda");
}
}
}