diff options
Diffstat (limited to 'iup/srclua5/zbox.lua')
-rwxr-xr-x | iup/srclua5/zbox.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/iup/srclua5/zbox.lua b/iup/srclua5/zbox.lua index 579c00b..7b0a348 100755 --- a/iup/srclua5/zbox.lua +++ b/iup/srclua5/zbox.lua @@ -3,30 +3,30 @@ ------------------------------------------------------------------------------ local ctrl = { nick = "zbox", - parent = BOX, + parent = iup.BOX, creation = "-", callback = {} } function ctrl.append (handle, elem) - ihandle_setname(elem) - Append(handle, elem) + iup.SetHandleName(elem) + iup.Append(handle, elem) end function ctrl.SetChildrenNames(obj) if obj then local i = 1 while obj[i] do - ihandle_setname(obj[i]) + iup.SetHandleName(obj[i]) i = i+1 end end end -function ctrl.createElement(class, arg) - ctrl.SetChildrenNames(arg) - return Zbox() +function ctrl.createElement(class, param) + ctrl.SetChildrenNames(param) + return iup.Zbox() end -iupRegisterWidget(ctrl) -iupSetClass(ctrl, "iup widget") +iup.RegisterWidget(ctrl) +iup.SetClass(ctrl, "iup widget") |