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.
You can place items on a form to align with other reference items on the form. As a results of setting relative alignment, you can later move the reference item and all other items set relative to it will also move with it. Relative positioning can affect more than the location of items. Relative positioning can also affect the alignment and size of items. Any adjustments to the location or size of a reference item could potentially affect numerous other items. This is a quick way to move, resize or apply font attributes to a group of items so that they line up with other items exactly when designing the form layout.
For example, you have a label at position 10,10 on your form. You create a field, and used relative positioning to place it after
the label. The field would be placed immediately to the right of the label. If you were to move the label to a position of 20, 20, the field would move with the label in order to remain after it. The field would have no absolute position of its own, but instead would base its position on where the label had been placed.
Examples of when you must use relative positioning:
To align items using relative positioning:
- Select the item(s) you want to move.
- Hold down the Ctrl key and click the item on the form you want to use as the reference item.
- Right-click and click Relative Align.
- Choose the modifier that describes the way you want to align the items.
Now move the reference item and notice the other selected item set relative to it also move. For detailed information about alignment types, see Alignment types
Parent topic: Aligning items
Aligning items absolutely