Re: EuGTK - change column label?
- Posted by Jerry_Story Sep 20, 2010
- 1162 views
irv said...
atom column = get(tv,"column",1) -- column 1 is actually the second column, thanks to C! set(column,"title","Foo!")
global object lvFoods = CreateLV(8000) global constant lstFoods = List:View(lvFoods,{"food","N/100g","N/req cal"}) atom col col = get(lstFoods,"column",0) -- starts with 0 set(col,"title",sprintf("%d foods",{length(dl_Foods)}))
./eugtk_stuff/GtkEngine.e:466 in procedure set()
type_check failure, classname is 0
... called from ./dmak_actions.e:494 in procedure Load_dlFoods()
Line 494 is:
set(col,"title",sprintf("%d foods",{length(dl_Foods)}))
What did I do wrong?