Hi all!
I am very new in wxLUA, I find it in LUA-A-I-O. I made a little
application which contains a ListCtrl:
tListBoxes["lst_reghubs"] =
wx.wxListView(tPanels.p3,tListBoxes.wxID_LST_REGHUBS,wx.wxPoint(8,8),
wx.wxSize(383,383),wx.wxLC_REPORT + wx.wxLC_SINGLE_SEL + wx.wxLC_HRULES
+ wx.wxLC_VRULES)
tListBoxes["lst_reghubs"]:InsertColumn(0, "Hub address",
wx.wxLIST_FORMAT_LEFT, -1) -- Primary key
tListBoxes["lst_reghubs"]:InsertColumn(1, "Hub name",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:InsertColumn(2, "Hub description",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:InsertColumn(3, "Hub users",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:InsertColumn(4, "Hub share",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:InsertColumn(5, "Hub nation",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:InsertColumn(6, "Hub last registration",
wx.wxLIST_FORMAT_LEFT, -1)
tListBoxes["lst_reghubs"]:SetColumnWidth(0, 80)
tListBoxes["lst_reghubs"]:SetColumnWidth(1, 80)
tListBoxes["lst_reghubs"]:SetColumnWidth(2, 80)
tListBoxes["lst_reghubs"]:SetColumnWidth(3, 55)
tListBoxes["lst_reghubs"]:SetColumnWidth(4, 55)
tListBoxes["lst_reghubs"]:SetColumnWidth(5, 55)
tListBoxes["lst_reghubs"]:SetColumnWidth(6, 80)
tListBoxes["lst_reghubs"]:SetBackgroundColour(tColours.wxListViewColour)
tListBoxes["lst_reghubs"]:SetTextColour(wx.wxWHITE)
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:
Hungarista
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users