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

22 lines
521 B
Lua
Raw Normal View History

2023-02-20 16:44:45 +00:00
------------------------------------------------------------------------------
-- ColorBrowser class
------------------------------------------------------------------------------
local ctrl = {
nick = "colorbrowser",
parent = iup.WIDGET,
creation = "",
subdir = "elem",
callback = {
drag_cb = "ccc",
change_cb = "ccc",
},
funcname = "ColorBrowser",
}
function ctrl.createElement(class, param)
return iup.ColorBrowser(param.action)
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")