blob: 80f6eb9d381715bdf8e45afd2fd76b2a507f2c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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)
p.Update()
c.Resize()
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()
?????????????
|