Made Tab containers children of the Tab.

This commit is contained in:
Pietro Gagliardi 2014-10-16 15:44:30 -04:00
parent 7c9c51a083
commit 31fd8a34df
1 changed files with 1 additions and 0 deletions

View File

@ -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