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

function ctrl.createElement(class, param)
   return iup.Spinbox(param[1])
end

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