summaryrefslogtreecommitdiff
path: root/iup/srclua5/colordlg.lua
blob: 6eea53b10e936b20f2ec107842e2b6701d8d6a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
------------------------------------------------------------------------------
-- ColorDlg class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "colordlg",
  parent = WIDGET,
  creation = "",
  funcname = "ColorDlg",
  callback = {}
} 

function ctrl.popup(handle, x, y)
  Popup(handle,x,y)
end

function ctrl.destroy(handle)
  return Destroy(handle)
end

function ctrl.createElement(class, arg)
   return ColorDlg()
end
   
iupRegisterWidget(ctrl)
iupSetClass(ctrl, "iup widget")