1. wxListCtrl

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

new topic     » topic index » view message » categorize

2. Re: wxListCtrl

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

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxListCtrl

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxListCtrl

EUEX.... I am using a wxListCtrl...

relLV	= create( wxListCtrl, {list,-1,4,l1,lcW,lcH,wxLC_REPORT+wxLC_VRULES+wxLC_HRULES+wxLC_SINGLE_SEL}) 
new topic     » goto parent     » topic index » view message » categorize

5. Re: wxListCtrl

Greg.... thanks for your reply.. will switch to the grid..

new topic     » goto parent     » topic index » view message » categorize

6. Re: wxListCtrl

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 message » categorize

7. Re: wxListCtrl

EUWX said...

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.

I know what you mean. A lot of those functions actually work for both controls. The documentation needs a really good once-over. getlost

We're taking proof-reading volunteers! grin

-Greg

new topic     » goto parent     » topic index » view message » categorize

8. Re: wxListCtrl

ghaberek said...
EUWX said...

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.

I know what you mean. A lot of those functions actually work for both controls. The documentation needs a really good once-over. getlost

We're taking proof-reading volunteers! grin

-Greg

I have no problem with helping in the creation of a better manual.
I will only work as directed (like a working bee)!
However, I am very much of a Brit in my use of English.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu