Re: wxListCtrl
- Posted by ghaberek (admin) Aug 23, 2012
- 1363 views
You are using List Control, not wxListCtrl
If you are trying to get 4 columns of data perhaps using wxGrid might be better instead of a list.
I think List is intended to contain several items in one column, whereas wxGrid will allow you to work with whole rows or individual items in a row.
I think you're confusing a wxListCtrl (a.k.a. ListView) with a wxListBox. A wxListCtrl does support multiple columns and will display them when set to the wxLC_REPORT style.
Using wxEuphoria and the wxListCtrl
edit_row = get_selection(relLV) listData = get_list_string(relLV,edit_row[1])
listData does not contain all columns (4 cols) data... only column 1
writing to the rows/cols is ok.. but reading back is a problem..
how can I get the remaining cols ??
I do not believe we have a method to return the values from any given column in a wxListCtrl, but I can certainly work that into the next release - I still have several more updates to make before we can do another release.
I also agree that using a wxGrid may be a better option, depending on your needs...
-Greg