summaryrefslogtreecommitdiff
path: root/iup/srclua5/filedlg.lua
blob: c0e6db5258266e7bb66b6ca827e74b61bdabcc0c (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
27
28
------------------------------------------------------------------------------
-- FileDlg class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "filedlg",
  parent = iup.WIDGET,
  creation = "",
  callback = {
    file_cb = "ss",
  },
  funcname = "FileDlg"
} 

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.FileDlg()
end
   
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")