summaryrefslogtreecommitdiff
path: root/iup/srclua5/colordlg.lua
blob: d6a71a4df70cb0f393b940f5b5f6e5ff194d5e10 (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 = iup.WIDGET,
  creation = "",
  funcname = "ColorDlg",
  callback = {}
} 

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

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

function ctrl.createElement(class, param)
   return iup.ColorDlg()
end
   
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")