diff options
Diffstat (limited to 'redo/window_windows.go')
| -rw-r--r-- | redo/window_windows.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go index 4fb971f..14fa352 100644 --- a/redo/window_windows.go +++ b/redo/window_windows.go @@ -12,6 +12,8 @@ type window struct { hwnd uintptr shownbefore bool + child Control + closing *event } @@ -65,8 +67,12 @@ func (w *window) SetControl(control Control) *Request { c := make(chan interface{}) return &Request{ op: func() { - // TODO unparent - // TODO reparent + if w.child != nil { // unparent existing control + w.child.unparent() + } + control.unparent() + control.parent(w) + w.child = control c <- struct{}{} }, resp: c, |
