1. wxEuphoria-list control
- Posted by buzzo Jul 01, 2013
- 1824 views
Need some help. Have a wxListCtrl, with 4 columns; text in header for each column Use the following code to put text in the columns
box_text = get_text_value(field1) x=insert_listctrl_item (relLV,0,box_text,0) -- puts text in col 0; the line is x box_text = get_text_value(field2) set_list_item(relLV,x,1, box_text,0 ) -- puts text in line x, col 1 box_text = get_text_value(field3) set_list_item(relLV,x,2, box_text,0 ) -- puts text in line x, col 2 box_text = get_text_value(field4) set_list_item(relLV,x,3, box_text,0 ) -- puts text in line x, col 3
however, have been unable to recall the fields.. right click on a line will return the line number using
x = get_selection(relLV)
how can I recall the fields by line/column?
2. Re: wxEuphoria-list control
- Posted by ghaberek (admin) Jul 02, 2013
- 1747 views
buzzo said...
how can I recall the fields by line/column?
It would seem that we have set_list_item() but no get_list_item() equivalent. I can get this added to the repo soon.
Also, as an FYI, you can use insert_listctrl_item() to add row all at once.
sequence values = {"aaa", "bbb", "ccc", "ddd"} -- get the current number of rows integer count = list_count( myList ) -- insert our row after the last row integer row_id = insert_listctrl_item( myList, count, values, 0 )
-Greg
3. Re: wxEuphoria-list control
- Posted by buzzo Jul 02, 2013
- 1703 views
Thanks Greg, I'll check the repo from time to time..
Z
4. Re: wxEuphoria-list control
- Posted by buzzo Jul 24, 2013
- 1628 views
Greg, any progress on this matter?
Buzzo