This content has been marked as final. Show 3 replies
Create a textformat object, set the property values that you want to use and then apply the textformat object to each text field that you want to have use it. Look at the online help information on textformat for more information and example code.
Rob - Thanks for the reply. However, I'm asking about the formatting of the input box itself, not the text. The TextFormat class doesn't have properties for border and background. I tried what you suggested anyway (see attached code) and got the expected errors that the assigned properties didn't exist. Is there a way to do this for the text input field itself?
I'm replying to my own question, but I figured I'd close this off myself. I realized that I could create my own function that accepted the TextField as an argument and then applied the formatting to that TextField. The code is attached.