Box
It is probable that any window will have its content set to a Box—this is because it's the only control that provides a way to group multiple controls together. It's a control with no visible container, which is the basic layout mechanism within andlabs UI. You can create a new box using ui.NewHorizontalBox() or ui.NewVerticalBox(), which lays out its child controls horizontally or vertically in a linear arrangement. In a horizontal arrangement, the child items will all have the same height (which will match the height required for the tallest child), and in a vertical (stacked) configuration, they will all have the same width.
The method of adding child controls to a box is to call the Append() function, which takes a ui.Control child ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access