Static Text Position

When a background colour is applied to a static control the default top left corner start position of the text doesn't look too good.

image

In the static control definition I can use halign="center" to improve the look but there is no equivalent valign="center" option. Options to specify left and top margin pixel (or percentage) indents would allow for finer control. e.g. dlg.control("staticText").lm = 5 or dlg.control("staticText").tm = 2

We'll add a vertical alignment option for static text controls in the next update.

1 Like

Thanks for adding this. I have just got around to trying it out and it works as expected but there is an unfortunate side effect. I am able to apply a background colour to the static control if valign=top but not if valign=center.