On 11/2/07, Attila <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> I am using a wx.wxListView in my program, and I want to sort the item
> sometimes by columns. I found a call called SortItems(), but I couldn't
> find out how it works. I tried to write a function like table.sort has in
> LUA, but the items were always 0 < 0, even if the two items weren't the
> same. I also checked the wxWidgets samples, but that C code can't be
> translated to LUA... :-/ I hope it's easy, just I don't see now, what I
> made wrong. Thanks for the help :)
>

See "function SortListItems(col)" in samples/bindings.wx.lua and the
bottom of the wxListCtrl docs for more information.
http://wxlua.sourceforge.net/docs/wxluaref.html#wxListCtrl

Regards,
    John

-------------------------------------------------------------------------
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