You can align items so their edges or centers are lined up, using either relative or absolute alignment.
There are two types of alignments:
- relative align — Changes the position of items so they align with a reference item and anchor the items to the reference item. If you later move or resize the reference item, any items anchored to it will automatically move in order to maintain alignment with the reference item.
- absolute align — Changes the position of items so they align with a reference item. The items will not automatically move if you later move or resize the reference item.
Use relative align when the size or position of items on your form may vary. For example, when your form is receiving data from a database or when sections of your form are created dynamically.
Alignment options are available by either right-clicking after items are selected, or in the top toolbar.
Aligning items absolutelyParent topic: Laying out pages
Absolute positioning allows you to precisely place items by setting their x and y coordinates in pixels. Each absolutely positioned item contains its own location and extent information and is therefore independent of other items on the form.
Aligning items relative to other items
Items with relative positioning are positioned in relation to other items on the form. Their itemlocation
information is dependent upon an anchor item. If you move the anchor item, all of its dependent items move to maintain their positions relative to the anchor item.
The different relative alignment types are defined below.