summaryrefslogtreecommitdiff
path: root/iup/srclua5/submenu.lua
blob: 5dc76d4e8e15d5e347792de337ba74f6b2bde39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
------------------------------------------------------------------------------
-- Submenu class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "submenu",
  parent = WIDGET,
  creation = "Si",
  callback = {
--    open_cb = "",       -- already registered by the menu
--    menuclose_cb = "",  -- already registered by the menu
  }
} 

function ctrl.createElement(class, arg)
  return Submenu(arg.title, arg[1])
end
   
iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")