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

function ctrl.createElement(class, param)
   return iup.Spin(param.action)
end

iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")