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

function ctrl.createElement(class, arg)
  return Button(arg.title)
end

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