From 0496cf77b52e1713749fe40a8ef1b22f4918ad1d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 13:13:59 -0400 Subject: Changed Tab on Windows to store each control in a *layout (see previous commit). Now I can throw out containerShow()/containerHide()/Show()/Hide(). This also will let me do the right thing with sizer and dialog base units again, and even get rid of sizer's confusion once and for all! --- redo/layout_windows.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'redo/layout_windows.go') diff --git a/redo/layout_windows.go b/redo/layout_windows.go index 58f7872..7d55a58 100644 --- a/redo/layout_windows.go +++ b/redo/layout_windows.go @@ -35,6 +35,10 @@ func newLayout(title string, width int, height int, child C.BOOL, control Contro return l } +func (l *layout) setParent(p *controlParent) { + C.controlSetParent(l.hwnd, p.hwnd) +} + //export storeWindowHWND func storeWindowHWND(data unsafe.Pointer, hwnd C.HWND) { l := (*layout)(data) -- cgit v1.2.3