From eed0eb6a476d54ce19aeff137984aa981d9e3976 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 15 Jun 2010 00:59:57 -0700 Subject: Upgrading to iup 3.1 --- iup/srclua5/zbox.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'iup/srclua5/zbox.lua') 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") -- cgit v1.2.3