summaryrefslogtreecommitdiff
path: root/iup/srclua5/submenu.lua
blob: faba80e22819cee13e275d1a90cd89f3605761b6 (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 = iup.WIDGET,
  creation = "SI",
  callback = {
--    open_cb = "",       -- already registered by the menu
--    menuclose_cb = "",  -- already registered by the menu
  }
} 

function ctrl.createElement(class, param)
  return iup.Submenu(param.title, param[1])
end
   
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")