Version: 5.1.1 - build 958
Using the solutionModel, I clone a form that contains a text area, then set the properties of that text area. Let’s say I want the text area to have a red background color, white foreground color, and text centered vertically. Here is the code:
var objectTextArea = objectFormDialog.getField( 'my_textarea' )
objectTextArea.verticalAlignment = SM_ALIGNMENT.CENTER
objectTextArea.background = '#FF0000'
objectTextArea.foreground = '#FFFFFF'
When the code is executed, the text area shows white text on a red background, however, the text is not centered vertically…it is at the top of the text area. I coded based on Servoy’s example for this property, but their example was for a text label. Does anyone know if this works with text areas?
Thanks!