summaryrefslogtreecommitdiff
path: root/iup/srclua5/dialog.lua
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srclua5/dialog.lua')
-rwxr-xr-xiup/srclua5/dialog.lua17
1 files changed, 9 insertions, 8 deletions
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")