summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 15:44:30 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 15:44:30 -0400
commit31fd8a34dfed35972bc799e6ef9f5911aec46cc2 (patch)
tree7353e04dfcc230f574c66a4fe782887712ced805
parent7c9c51a0832b90fbd2e1c35ed0ba3f547911a31e (diff)
Made Tab containers children of the Tab.
-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