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

22 lines
498 B
Lua
Raw Normal View History

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