Would like to do something like this except button is not really in the middle
v: [text "test" field "test"
return
button middle
]
view v
The Red/VID dialect is capable of aligning faces in the current row/column, but not yet centering it relatively to its parent face. The current way to achieve it is to explicitly call the center-face
function, once the face tree has been constructed:
v: layout [
size 500x200
text "test" field "test" return
b: button "ok"
]
center-face/x b
view v