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

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