diff options
| author | Jeff Carr <[email protected]> | 2019-05-31 13:15:38 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-31 13:15:38 -0700 |
| commit | b5d51c314debff42cf479b165f400d84a6b72f7e (patch) | |
| tree | 34745c2b8970fe86427d755815801877bb3b12b3 /splash.go | |
| parent | f31e3850604b0150eac93862448ba520cd61b616 (diff) | |
more structural cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -11,7 +11,7 @@ import "runtime" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" -func ShowSplashBox(wm *GuiWindow, newText *ui.AttributedString) *ui.Box { +func ShowSplashBox(wm *GuiWindow, newText *ui.AttributedString) *GuiBox { log.Println("ShowSplashBox() START") log.Println("ShowSplashBox() START wm =", wm) if (wm == nil) { @@ -19,14 +19,23 @@ func ShowSplashBox(wm *GuiWindow, newText *ui.AttributedString) *ui.Box { os.Exit(0) return nil } + var gb *GuiBox + gb = new(GuiBox) + + gb.EntryMap = make(map[string]*GuiEntry) + gb.EntryMap["test"] = nil + newbox := ui.NewVerticalBox() newbox.SetPadded(true) + // gw.Box1 = hbox + gb.UiBox = newbox // initialize the GuiArea{} wm.Area = new(GuiArea) wm.Area.Window = wm wm.Area.UiAttrstr = newText makeSplashArea(wm, wm.Area) + gb.Area = wm.Area newbox.Append(wm.Area.UiArea, true) @@ -65,5 +74,5 @@ func ShowSplashBox(wm *GuiWindow, newText *ui.AttributedString) *ui.Box { newbox.Append(okButton.B, false) // os.Exit(0) - return newbox + return gb } |
