summaryrefslogtreecommitdiff
path: root/iup/srclua5/val.lua
blob: ba942557b55851b4e4e747d9267f7baeaa98a226 (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 = WIDGET,
  creation = "s",
  callback = {
    mousemove_cb = "d",
    button_press_cb = "d",
    button_release_cb = "d",
  },
}

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

iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")