From 31fd8a34dfed35972bc799e6ef9f5911aec46cc2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Oct 2014 15:44:30 -0400 Subject: [PATCH] Made Tab containers children of the Tab. --- newctrl/tab_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/newctrl/tab_windows.go b/newctrl/tab_windows.go index af642ea..befed44 100644 --- a/newctrl/tab_windows.go +++ b/newctrl/tab_windows.go @@ -39,6 +39,7 @@ func newTab() Tab { func (t *tab) Append(name string, control Control) { c := newContainer() control.setParent(&controlParent{c.hwnd}) + c.setParent(&controlParent{t.hwnd}) t.tabs = append(t.tabs, c) t.children = append(t.children, control) // initially hide tab 1..n controls; if we don't, they'll appear over other tabs, resulting in weird behavior