summaryrefslogtreecommitdiff
path: root/iup/srclua5/button.lua
blob: fc57b1a8e2ccf938fa3901c22885f9a724a2a394 (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 = iup.WIDGET,
  creation = "S-",
  callback = {
    action = "", 
  }
} 

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

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