The templateField Keyword
dcragg at lacscentre.co.uk
Sat Mar 11 02:18:44 CST 2006
On 9 Mar 2006, at 19:41, Gregory Lypny wrote:
> Hello everyone,
> I tried to create a field template using the templateField keyword,
> but it doesn't seem to work. When I use the handler below, the
> text in newly created fields is Lucida Grande, but the size is 11
> instead of 12, and the height is 14 instead of 18. What am I doing
> on openStack
> set the textFont of the templateField to "Lucida Grande"
> set the textSize of the templateField to 12
> set the fixedLineHeight of the templateField to true
> set the textHeight of the templateField to 18
> end openStack
Are these newly created fields made by using the Rev tool palette?
I'd assume that Rev sets the templateField every time you create a
field. That would explainwhat you see.
To create fields using templateField settings of your own, you need
to use "create field" before anything else can change the
templateField again. Something like this:
set the textFont of the templateField to "Lucida Grande"
set the textSize of the templateField to 12
set the fixedLineHeight of the templateField to true
set the textHeight of the templateField to 18
reset the templateField
More information about the use-livecode