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

22 lines
506 B
Lua
Executable File

------------------------------------------------------------------------------
-- Val class
------------------------------------------------------------------------------
local ctrl = {
nick = "flatval",
parent = iup.WIDGET,
subdir = "elem",
funcname = "FlatVal",
creation = "S",
callback = {
valuechanging_cb = "n",
flat_wheel_cb = "fnns",
},
}
function ctrl.createElement(class, param)
return iup.FlatVal(param[1])
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")