Hi Ad,
Perhaps you could do this more easily using OpusScript?
See exerpt from the Opus Script manual (page 306):
Quote:
SetSelectionStyle
Syntax:
SetSelectionStyle( Style )
Parameters:
Style – Style is a reference to one property of an object that can be used to set one of the style formats of a Text object. For example, Style could make the text within a Text object bold, italic, underline, subscript or superscript. Or Style could change a Text objects, font, fontsize, fontaspect, colour, backgroundcolour or shadowcolour. For correct syntax, refer to the GetSelectionStyle function. This parameter is required.
Remarks:
This function allows you to set a new formatting style to a Text object. Only the properties specified are applied to the text.
Example:
For example, to set the Text object named myText to all bold use the following syntax:
myText.SetSelection(0,-1)
var newStyle = new Object()
newStyle.bold = true
myText.SetSelectionStyle(newStyle)
You can use a variable, that can be inputed from a txt box or even a txt or ini file, to allow the user to change the font size.
Hope this helps...
Sometimes the simpler the solution, the better it works.