blob: 579c00b6223536f525a3316e028ac069a8062337 (
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
|
------------------------------------------------------------------------------
-- ZBox class
------------------------------------------------------------------------------
local ctrl = {
nick = "zbox",
parent = BOX,
creation = "-",
callback = {}
}
function ctrl.append (handle, elem)
ihandle_setname(elem)
Append(handle, elem)
end
function ctrl.SetChildrenNames(obj)
if obj then
local i = 1
while obj[i] do
ihandle_setname(obj[i])
i = i+1
end
end
end
function ctrl.createElement(class, arg)
ctrl.SetChildrenNames(arg)
return Zbox()
end
iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")
|