On 7/30/07, Attila <[EMAIL PROTECTED]> 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

-------------------------------------------------------------------------
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
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to