From cad165e10029625ea8c6b10aef1830c83333ed1d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 13 Apr 2015 22:30:19 -0400 Subject: [PATCH] Added a document explaining how parents and children relate. I'm starting to think the current system actually does work fine after all... --- parentplan | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 parentplan diff --git a/parentplan b/parentplan new file mode 100644 index 00000000..7f7616a8 --- /dev/null +++ b/parentplan @@ -0,0 +1,37 @@ +current situation + +let's say the control hierarchy is +w window + p parent +c stack + d stack + e button + f button + g button +h button +i entry + +w = NewWindow() + p = NewParent(w.Handle) +w.SetChild(c) + p.SetChild(c) + c.SetParent(p) + d.SetParent(p) + e.SetParent(p) + f.SetParent(p) + g.SetParent(p) +c.Add(h) + h.SetParent(p) + p.Update() + c.Resize() +d.Remove(1) + f.RemoveParent() + p.Update() + c.Resize() +g.Hide() + p.Update() + c.Resize() +w.SetChild(i) + ????????????? +w.Destroy() + ?????????????