extra space in a field [solved]
Posted: Sat Jan 24, 2015 9:58 pm
I'm trying to use a field as a container for a short bit of text. I want the edges of the field to shrink down to just enough to show all of the text without any extra padding.
This is the script I'm using to create the field:
And it comes out looking like the field in the picture. The top and left is nice, but every field has a little extra on the right and a lot extra on the bottom.
A related question is that I can't find a property to align the text of a field to the top | center | bottom.
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.