summaryrefslogtreecommitdiff
path: root/iup/srclua5/val.lua
blob: cd22c6df8a3aa6d8f8ef54f421ebc5e64ab607f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
------------------------------------------------------------------------------
-- Val class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "val",
  parent = iup.WIDGET,
  creation = "S",
  callback = {
    mousemove_cb = "d",
    button_press_cb = "d",
    button_release_cb = "d",
  },
}

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

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