1. wxListCtrl
- Posted by buzzo Aug 22, 2012
- 1386 views
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 ??
2. Re: wxListCtrl
- Posted by EUWX Aug 22, 2012
- 1366 views
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.
3. Re: wxListCtrl
- Posted by ghaberek (admin) Aug 23, 2012
- 1362 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
4. Re: wxListCtrl
- Posted by buzzo Aug 23, 2012
- 1327 views
EUEX.... I am using a wxListCtrl...
relLV = create( wxListCtrl, {list,-1,4,l1,lcW,lcH,wxLC_REPORT+wxLC_VRULES+wxLC_HRULES+wxLC_SINGLE_SEL})
5. Re: wxListCtrl
- Posted by buzzo Aug 23, 2012
- 1344 views
Greg.... thanks for your reply.. will switch to the grid..
6. Re: wxListCtrl
- Posted by EUWX Aug 23, 2012
- 1312 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
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.
7. Re: wxListCtrl
- Posted by ghaberek (admin) Aug 23, 2012
- 1266 views
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.
We're taking proof-reading volunteers!
-Greg
8. Re: wxListCtrl
- Posted by EUWX Aug 23, 2012
- 1263 views
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.
We're taking proof-reading volunteers!
-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.