Place the grid inside the menu
03 / CREATE THE CONTAINER
The container is the rectangle that will hold all six verbs. Give it room to grow sideways and leave a little space above it for a title.
Left, the Grid Container in Add Element. Right, the four edges and offsets after applying the example settings.
01. Add the container
Choose Add Element Grid Container. Select it in the GUI Elements list. In General, set the ID to verb_grid. The ID is the name you will choose when you attach each button.
02. Stretch the container to the window
Under the General tab’s width and height fields, choose Edit layout and navigation…. Leave Layout parent blank. Choose Fill under Anchor preset. This sets Position to anchored and ties the four sides to the window.
03. Leave a margin on each side
After choosing Fill, enter offsetLeft 16, offsetTop 64, offsetRight −16 and offsetBottom −16. Click Apply. The right and bottom numbers are negative because those edges move inward.
WHAT TO LOOK FOR
At 640 × 360 the container starts at (16, 64) and is 608 pixels wide. A title can sit above it as a separate label.
Working with grids / 4
