Re: wxListCtrl

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...
EUWX said...

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.

buzzo said...

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

I am only going by what the customer said.
get_selection and
get_list_string
are not listed as functions in wxListCtrl.html, but are listed in ListControl.html.
According to him he is already using wxLC_REPORT style plus others.

Anyway, as you said, you will be able to give a way of retrieving all columns in the next release.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu