Having a little trouble centering a dynamically changing StaticText element whose parent container has its alignChildren property set to 'center'. As the text of the element changes, new strings that are assigned to it are truncated to the length of the string the element initially held. If I initially place a string of blank characters that is longer in length than any anticiapted text string the element will ever hold, when the text is updated it is offeset to the left by the number of characters of the initial string that are in excess of the length of the string newly assigned to it. Any ideas or suggestions would be very much appreciated.
Set the initial size of the StaticText with the "characters" property, which will reserve width so it is the proper width.
Also set "justify" to "center" so that it will always be centered within that space.
Note that "characters" is an initial creation property only, and cannot be set after the object has been created.
John, thanks for the tips. I had the character property set, but was trying to center the text with the alignment property.