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

22 lines
491 B
Lua
Raw Permalink Normal View History

2023-02-20 16:44:45 +00:00
------------------------------------------------------------------------------
-- Expander class
------------------------------------------------------------------------------
local ctrl = {
nick = "expander",
parent = iup.BOX,
subdir = "elem",
creation = "I",
callback = {
action = "",
openclose_cb = "n",
extrabutton_cb = "nn",
}
}
function ctrl.createElement(class, param)
return iup.Expander()
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")