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

22 lines
498 B
Lua
Executable File

------------------------------------------------------------------------------
-- Val class
------------------------------------------------------------------------------
local ctrl = {
nick = "val",
parent = iup.WIDGET,
subdir = "elem",
creation = "S",
callback = {
mousemove_cb = "d",
button_press_cb = "d",
button_release_cb = "d",
},
}
function ctrl.createElement(class, param)
return iup.Val(param[1])
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")