Skip to reading
The GUI Designer

7. Group and align a tidy layout

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Use groups for pieces that should travel together, such as a verb icon and its label. Use alignment for pieces that should line up but can still be edited independently.

1. Ctrl-click the controls you want to keep together.

2. Click Group. The elements receive a shared Group ID.

3. Move a grouped element to move the group. Resizing a grouped selection transforms the group's positions and sizes proportionally.

4. Use Ungroup when you need to edit the members separately, then group them again if useful.

Figure 10. Align offers edge, center, size and distribution commands. The control you make primary matters for multi-selection alignment.

Source table from 7. Group and align a tidy layout, page 15
Align commandReference it uses
One element selectedThe GUI canvas. For example, Horizontal Center centers it in the GUI.
Several elements selectedThe primary selected element. Select the intended reference last.
Same Width / Same HeightMatches the primary control's dimension.
Distribute Horizontally / VerticallyNeeds at least three controls. It spaces their centers between the first and last.

Copy, Paste and Duplicate give copied groups new Group IDs so moving the copy does not move the originals. While several elements are selected, the detailed single-element form is hidden; use Group, Align or Arrange, or return to one selection.

Page 15 of 57Permalink
Go to page