Sometimes you compose a collection of display boxes and they don’t appear to be fully aligned. If you care about the aesthetics of a user interface this can drive you a bit crazy! Here is a trick that will help you fix the problem.
Here is my dialog window:
I have a row that contains both a text box and a combo box. The text box is a few pixels higher than the combo box.
To fix the problem you can send the vertical alignment message to text box:
Here is the fully code, with the highlighted line showing the text box definition:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
New Window("Define Response", <<Modal, Show Toolbars(0), Show Menu(0), Border Box(Top(20),Bottom(40),Left(20),Right(20), LineupBox(NCol(3), Spacing(10), Text Box("Response Name",<<Set Font Style("Bold")), Text Box("Ambr Variable",<<Set Font Style("Bold")), Text Box("Statistic",<<Set Font Style("Bold")), Text Edit Box("",<<Set Width(200),<<Vertical Alignment("Center")), Combo Box(lstVariables), Combo Box(lstStatistics) ) ) ) |