View Single Post
Old March 4th, 2013, 05:19 AM is offline
Regular Contributor
Join Date: Feb 2010
Posts: 62
Default Re: suppress a frame based on the copyfit of another frame

Can you help me with that OnRecordStart text Measure rule to suppress the frame? I very novice here and do not know how to write that. How do you write the text measure to determine if copy does not fit in the frame?

var tm = new FusionProTextMeasure;
tm.useTags = true;
var tmWidth = tm.textWidth;

if (tmWidth > "XX??") //if text exceeds frame
FindTextFrame("textblock").suppress = true;
FindTextFrame("textblocklong").suppress = false;
FindTextFrame("textblock").suppress = false;
FindTextFrame("textblocklong").suppress = true;

Thanks for your help.
Reply With Quote