Re: EuGTK - change column label?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu