lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

How to generate a dialog in runtime. I mean create list of controls and
add them to dialog. I tried this with obvious result:

ll={}
for a=1,10 do
  ll[a]=iup.text{value = tostring(a)}
  ll[a]["a"]=a
  ll[a]["action"] = function (self,c,after) print(tostring(self.a)) end
end
dlg2=iup.dialog{iu.vbox{ll}}


Best regards,
Nick