diff options
Diffstat (limited to 'andlabs/window.go')
| -rw-r--r-- | andlabs/window.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/andlabs/window.go b/andlabs/window.go index d52648e..d517f86 100644 --- a/andlabs/window.go +++ b/andlabs/window.go @@ -6,6 +6,7 @@ import ( "go.wit.com/log" "go.wit.com/gui/widget" + "go.wit.com/gui/toolkits/tree" ) func (t *guiWidget) MessageWindow(msg1 string, msg2 string) { @@ -16,23 +17,24 @@ func (t *guiWidget) ErrorWindow(msg1 string, msg2 string) { ui.MsgBoxError(t.uiWindow, msg1, msg2) } -func newWindow(n *node) { +func newWindow(p, n *tree.Node) { var newt *guiWidget newt = new(guiWidget) // menubar bool is if the OS defined border on the window should be used - win := ui.NewWindow(n.progname, n.X, n.Y, menubar) + win := ui.NewWindow(n.GetProgName(), 640, 480, menubar) win.SetBorderless(canvas) win.SetMargined(margin) win.OnClosing(func(*ui.Window) bool { - n.show(false) - n.doUserEvent() + // show(n, false) + me.myTree.DoWindowCloseEvent(n) return false }) newt.uiWindow = win newt.uiControl = win - n.tk = newt + n.TK = newt + place(p, n) win.Show() return } |
