When the user inputs copy, copyfit reduces typesize to accomodate the space available in the frame, but the final typesize cannot be less than 12 point. When the user inputs more copy than space available, and the type has already reduced to a minimum 12 pt size, I need to display a warning. I cannot get the warning to display when the text exceeds the space available in the frame.
if (!Copyfit(new MagnifyAttributes("text", 25, 400, 12, 72)))
{
if (FusionPro.Composition.CurrentFlow.name == "contentcopyfit")
{
FusionPro.Composition.CurrentFlow.content =
'<para style="(no style)"><f name="Arial Bold"><z newsize="14.0"><color name="Pantone 202 C">' +
"YOU HAVE ENTERED TOO MUCH INFORMATION."
}
}
else if (Copyfit(new MagnifyAttributes("text", 25, 400, 12, 72)))
{
if (FusionPro.Composition.CurrentFlow.name == "contentcopyfit")
{
FusionPro.Composition.CurrentFlow.content = ""
}
}