Why are my buttons not positioned at 0x0 within the box panels ?
main: layout [
size 680x400
origin 0x0
space 0x0
pad 0x0
at 0x0
across
Menu1: box brick 200x200
return
Menu2: box blue 200x300
]
Menu1-items: layout [
origin 0x0
space 0x0
at 0x0
button "1"
button "2"
button "Quit" [quit]
]
Menu2-items: layout [
origin 0x0
space 0x0
at 0x0
button "3"
button "4"
]
Menu1/pane: Menu1-items
Menu2/pane: Menu2-items
Show Menu1
Show Menu2
View Main
The menu1-items layout itself has a default offset. Ditto for menu2-items.
There are two ways to address that. I’ve used one method for menu1-items, and the other for menu2-items. Pick the one you prefer: