|
From: John L. <jla...@gm...> - 2007-07-30 14:37:12
|
On 7/30/07, Attila <ejj...@gm...> wrote: > Hi all! > > I am very new in wxLUA, I find it in LUA-A-I-O. I made a little Welcome. > It appears as it must be: 7 columns with grids. I want to search on each > lines when something will be written into a textbox, so search through the > added lines. > for i = 0,tListBoxes["lst_reghubs"]:GetItemCount() - 1 do > local thishub = tListBoxes["lst_reghubs"]:GetItemText(i) > -- ... Something here??? > end > This just gets the first columns value, but, how can I search in all? > Thanks for the replies: This is untested, but it works something like this. See the bindings.wx.lua sample for an example of using the wxListCtrl. http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlsetitem http://www.wxwidgets.org/manuals/stable/wx_wxlistitem.html#wxlistitem local listItem = wx.wxListItem() listItem:SetId(row#) listItem:SetMask(wx.wxLIST_MASK_TEXT) listCtrl:GetColumn(col#, listItem) print(listItem:GetText()) Regards, John Labenski |