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

20 lines
448 B
Lua
Executable File

------------------------------------------------------------------------------
-- Button class
------------------------------------------------------------------------------
local ctrl = {
nick = "button",
parent = iup.WIDGET,
subdir = "elem",
creation = "S-",
callback = {
action = "",
}
}
function ctrl.createElement(class, param)
return iup.Button(param.title)
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")