From eac8341a4ff87882f8bf6375d2c2915510b908a5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 14 Apr 2015 09:41:52 -0400 Subject: More parent planning and related API changes. I now have a better handle over what I want after last night: p.SetChild() is only called by w.SetChild() and the various uiTab and uiGroup methods; everything else should call Control.SetParent(). Some renaming is needed. --- new/parentplan | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'new/parentplan') diff --git a/new/parentplan b/new/parentplan index 80f6eb9..9f817b5 100644 --- a/new/parentplan +++ b/new/parentplan @@ -27,13 +27,27 @@ c.Add(h) p.Update() c.Resize() d.Remove(1) - f.RemoveParent() + f.SetParent(NULL) p.Update() c.Resize() g.Hide() p.Update() c.Resize() w.SetChild(i) - ????????????? + p.SetChild(i) + c.SetParent(NULL) + d.SetParent(NULL) + ... + i.SetParent(p) + ... + p.Update() + i.Resize() +w.SetChild(NULL) + p.SetChild(NULL) + i.SetParent(NULL) + p.Update() +w.SetChild(i) + (again) w.Destroy() - ????????????? + p.Destroy() + i.Destroy() -- cgit v1.2.3