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/dialog.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'iup/srclua5/dialog.lua') diff --git a/iup/srclua5/dialog.lua b/iup/srclua5/dialog.lua index a996ad7..ac9b786 100755 --- a/iup/srclua5/dialog.lua +++ b/iup/srclua5/dialog.lua @@ -3,11 +3,12 @@ ------------------------------------------------------------------------------ local ctrl = { nick = "dialog", - parent = WIDGET, + parent = iup.WIDGET, creation = "I", callback = { map_cb = "", unmap_cb = "", + destroy_cb = "", close_cb = "", show_cb = "n", move_cb = "nn", @@ -16,21 +17,21 @@ local ctrl = { } } -function ctrl.createElement(class, arg) - return Dialog(arg[1]) +function ctrl.createElement(class, param) + return iup.Dialog(param[1]) end function ctrl.popup(handle, x, y) - Popup(handle,x,y) + iup.Popup(handle,x,y) end function ctrl.showxy(handle, x, y) - return ShowXY(handle, x, y) + return iup.ShowXY(handle, x, y) end function ctrl.destroy(handle) - return Destroy(handle) + return iup.Destroy(handle) end -iupRegisterWidget(ctrl) -iupSetClass(ctrl, "iup widget") +iup.RegisterWidget(ctrl) +iup.SetClass(ctrl, "iup widget") -- cgit v1.2.3