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

23 lines
563 B
Lua
Raw Permalink Normal View History

2023-02-20 16:44:45 +00:00
------------------------------------------------------------------------------
-- Tabs class
------------------------------------------------------------------------------
local ctrl = {
nick = "tabs",
parent = iup.BOX,
subdir = "elem",
creation = "-",
callback = {
tabchange_cb = "ii",
tabchangepos_cb = "nn",
tabclose_cb = "n",
--rightclick_cb = "n", -- already implemented in IupTree, same definition
},
}
function ctrl.createElement(class, param)
return iup.Tabs()
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")