Toggle navigation

How to Keep Form Labels Aligned

Ever wanted to align a set of Label controls to the right, and have them keep that alignment as you edit their text? There's a way to do it:

  1. select all the labels
  2. align them right
  3. set the text alignment in the property inspector to the right
  4. click autosize to autosize all the labels.Now, when you edit the text of any of the labels, they will "grow to the left" and stay right aligned.

This also works with centering titles, for instance. Just center-align the text in the property inspector and autosize. The control will grow on either side, staying centered relative to the rest of your wireframe.

Try it!