Yes, you can determine whether a text field overflows in the OnCopyfit
rule. Give your text frame (actually the text flow) a name, and you can
use some logic like this:
if (FusionPro.Composition.CurrentFlow.name == "Letter")
{
if (!FusionPro.Composition.CurrentFlow.fits)
{
Print("Letter does not fit!");
//FusionPro.Composition.CurrentFlow.content =
// "<para><z newsize=100><color name=Red>" +
// "Letter does not fit!</para>";
}
else
Print("Letter fits just fine");
}
In this example, the flow's name is "Letter", but you can use any name
you want. The code as shown will write a message to the composition log
file, but you can uncomment out the three lines below the first call to
Print to actually change the output.
Note that this will work regardless of the Overflow or Copyfit settings
on the flow in question. You can insert the sample code before the
default OnCopyfit syntax if you still want to perform copyfitting even
if the original content didn't fit.
Dan
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!
Do you have a question or lots of knowledge to share about FusionPro Web?
If so, join our Printable Web to Print Users' Forum today!
Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--