Roy Marshall wrote:
I have researched the forums and found something like:
myFrame.applyObjectStyles(GreenBox , true);
but these dont work either.
the problem is in S after applyObjectStyle ... should be applyObjectStyle - without S at end
I have just answered this by finding another thread...
myFrame.applyObjectStyle(app.documents.objectStyles.item("GreenBox"), true);I would like to know what the 'True' means though.Any thoughts?CheersRoy
Parameter Type Description using ObjectStyle The object style to apply. clearingOverrides bool If true, clears the Button's existing attributes before applying the style. (Optional) (default: true) (Optional) clearingOverridesThroughRootObjectStyle bool If true, clears attributes and formatting applied to the Button that are not defined in the object style. (Optional) (default: false) (Optional)
-- so you can use one or even two trues; it's default is 'true'.