iup-stack/iup/srclua5/elem/param.lua

23 lines
506 B
Lua
Executable File

------------------------------------------------------------------------------
-- Param class
------------------------------------------------------------------------------
local ctrl = {
nick = "param",
parent = iup.WIDGET,
subdir = "elem",
creation = "s",
callback = {}
}
function ctrl.createElement(class, param)
return iup.Param(param.format)
end
function ctrl.GetParamHandle(ih, name)
return iup.GetParamHandle(ih, name)
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")