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

22 lines
506 B
Lua
Raw Normal View History

2023-02-20 16:44:45 +00:00
------------------------------------------------------------------------------
-- 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")