1. wxEuphoria-list control

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?

new topic     » topic index » view message » categorize

2. Re: wxEuphoria-list control

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

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

3. Re: wxEuphoria-list control

Thanks Greg, I'll check the repo from time to time..

Z

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

4. Re: wxEuphoria-list control

Greg, any progress on this matter?

Buzzo

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

Search



Quick Links

User menu

Not signed in.

Misc Menu