diff options
| author | Jeff Carr <[email protected]> | 2021-10-04 19:50:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-04 19:50:29 -0500 |
| commit | 34c88156c0da2b98f2c464321ffc4a6d87ab8f98 (patch) | |
| tree | ccf753be524d4e54b2dfbf539fd126b99eb5c1c7 | |
| parent | a1800a79e5fc4a4f7757a18885c5b8295c8b7cdc (diff) | |
MINOR: minor change
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | window.go | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -21,7 +21,7 @@ func StartNewWindow(bg bool, name string, axis int, callback func(*GuiBox) *GuiB window := box.Window log.Println("StartNewWindow() box =", box) - runWindow(window.UiWindow) + window.UiWindow.Show() }) time.Sleep(500 * time.Millisecond) // this might make it more stable on windows? } else { @@ -35,17 +35,11 @@ func StartNewWindow(bg bool, name string, axis int, callback func(*GuiBox) *GuiB window := box.Window log.Println("StartNewWindow() box =", box) - runWindow(window.UiWindow) + window.UiWindow.Show() }) } } -// This creates the raw andlabs/ui Window -func runWindow(uiWindow *ui.Window) { - log.Println("runWindow() START ui.Window.Show()") - uiWindow.Show() -} - func MessageWindow(gw *GuiWindow, msg1 string, msg2 string) { ui.MsgBox(gw.UiWindow, msg1, msg2) } @@ -81,6 +75,7 @@ func InitWindow(gw *GuiWindow, name string, axis int) *GuiBox { newGuiWindow.UiWindow = ui.NewWindow(name, int(newGuiWindow.Width), int(newGuiWindow.Height), true) newGuiWindow.UiWindow.SetBorderless(false) + // newGuiWindow.UiWindow.SetTitle("test") newGuiWindow.UiWindow.OnClosing(func(*ui.Window) bool { log.Println("initTabWindow() OnClosing() THIS WINDOW IS CLOSING newGuiWindow=", newGuiWindow) // newGuiWindow.UiWindow.Destroy() |
