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.
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