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

27 lines
898 B
Lua
Raw Permalink Normal View History

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