summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newctrl/tab_windows.go1
1 files changed, 1 insertions, 0 deletions
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