You can choose whether or not you want text to wrap

This commit is contained in:
2023-01-10 21:01:30 -05:00
parent a79f2eaf64
commit 3ddeeb5469
4 changed files with 56 additions and 10 deletions

View File

@@ -16,12 +16,12 @@ func run () {
container := basic.NewContainer(layouts.Vertical { true, true })
window.Adopt(container)
label := basic.NewLabel("it is a label hehe")
label := basic.NewLabel("it is a label hehe", false)
button := basic.NewButton("drawing pad")
okButton := basic.NewButton("OK")
button.OnClick (func () {
container.DisownAll()
container.Adopt(basic.NewLabel("Draw here:"), false)
container.Adopt(basic.NewLabel("Draw here:", false), false)
container.Adopt(basic.NewTest(), true)
container.Adopt(okButton, false)
})