coordinate_list
A WALTER expression made of up to eight numeric values in square brackets, used to position and size UI elements.
Kind: concept
Coordinate lists are a sequence of values in []s. They represent a sequence of 8 values, and only one is required (any omitted values are set to 0). The meaning of these values depends on context, but for most UI elements the meaning is as follows:
[0 0 20 20 0 0 1 1]
^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | |
| | | | | | | \ bottom attach: scale the bottom edge of control with parent height by this factor
| | | | | | \ right attach: scale the right edge of control with parent width by this factor
| | | | | \ top attach: scale the top edge of control with parent height by this factor
| | | | \ left attach: scale the left edge of control with parent width by this factor
| | | \ height: height of control (before edge scaling, if any)
| | \ width: width of control (before edge scaling, if any)
| \ top: top edge of control (before edge scaling, if any)
\ left: left edge of control (before edge scaling, if any)
Other uses:
- *.size: the left/top coordinates are interpreted as default width/height. The width/height coordinates may specify "minimum sizes" for some contexts (notably tcp, mcp, envcp, etc). These minimum sizes aren't necessarily enforced in the UI, but instead it is kept larger with a "you're not seeing everything" image overlayed.
- *.margin: the first four coordinates represent left, top, right, bottom margins, respectively, and the fifth coordinate represents (when supported) where to justify text (0=left,0.5=center,1=right)
- *.color, the first four coordinates represent red, green, blue, and alpha (0-255), and the second four coordinates may specify another color (or may be ignored).
- Additionally, some fields may use the values in other ways (as documented).