It looks almost as I want, but Bar button should be on the same level with Foo.
Code: Select all
gui add, text,, Text text text text text text
gui add, button, gFoo, Foo
gui add, button, gBar ym, Bar
gui show,, Foobar
return
GuiClose:
exitApp
Foo:
exitApp
Bar:
exitApp