summaryrefslogtreecommitdiff
path: root/iup/srclua5/list.lua
blob: f0dcc2aef3f9ab6c3d40b8c960abe8f5e3bc86a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
------------------------------------------------------------------------------
-- List class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "list",
  parent = iup.WIDGET,
  creation = "-",
  callback = {
     action = "snn", 
     multiselect_cb = "s",
     edit_cb = "ns",
     dropdown_cb = "n",
     dblclick_cb = "ns",
   }
} 

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