GOOD: allow setting 'Stretchy' as a global config

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-11-04 02:13:58 -05:00
parent 12167e419d
commit 955c823681
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
import "git.wit.org/wit/gui"
func golangDebug(w *gui.Node) {
gui.Config.Stretchy = false
if (w == nil) {
gui.Config.Title = "golangDebug Window"
gui.Config.Width = 100

View File

@ -72,13 +72,17 @@ func resolvWindow(w *gui.Node) {
bash("ping -c 3 2001:4860:4860::6464")
})
gui.Config.Stretchy = true
gNode.AddButton("set output", func (*gui.Node) {
if (generaloutput != nil) {
generaloutput.SetText("wow")
generaloutput.SetMargined(false)
}
})
gui.Config.Stretchy = false
gui.Config.Stretchy = true
gNode = tab.AddGroup("Update")
generaloutput = gNode.MakeGroupEdit("output")
gui.Config.Stretchy = false
}