summaryrefslogtreecommitdiff
path: root/iup/srclua5/item.lua
blob: d0ef38fdb1697d9bca24ab459ca3db4a23e9e057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
------------------------------------------------------------------------------
-- Item class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "item",
  parent = iup.WIDGET,
  creation = "S-",
  callback = {
    action = "", 
    highlight_cb = "",
  }
} 

function ctrl.createElement(class, param)
   return iup.Item(param.title)
end
   
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")