This is the script I'm using to create the field:
Code: Select all
set the loc of the templateField to workingArray[tKey][coord]
set the textAlign of the templateField to center
set the margins of the templateField to 5
set the opaque of the templateField to true
set the lockText of the templateField to true
set the threeD of the templateField to false
set the borderWidth of the templateField to 0
-- the object has to already exist for some things to work
create field in group "graphicNetwork" of stack "platyvue"
put the long name of it into workingArray[tKey][longID]
set the text of workingArray[tKey][longID] to nodeString(tKey)
set the width of workingArray[tKey][longID] to the formattedWidth of workingArray[tKey][longID]
set the height of workingArray[tKey][longID] to the formattedHeight of workingArray[tKey][longID]
A related question is that I can't find a property to align the text of a field to the top | center | bottom.