Re: How do you populate a ListView?

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

----- Original Message ----- 
>From: ronaustin at alltel.net 
>Subject: RE: How do you populate a ListView?
>
>
>>
>>-------Original Message-------
>>
>>From: EUforum at topica.com
>>Date: Friday, October 17, 2003 4:30:21 AM
>>To: EUforum
>>Subject: RE: How do you populate a ListView?
>>
>>
>>should be 
>>count = addLVItem(myLV, 0, {db_key,db_data})
>>You can replace the 0 with the id for an icon returned 
>>whith addIcon command
>
>Thanks.  That's better.  It is displaying two columns, except
> the columns are not the right width and there is a third 
>column with nothing in it.  I think I can set the column width
> with LVCOLUMN, but I just can't figure it out, and I don't
>now how to get rid of the 3rd column.  I can't find an example.

Well the first thing is to work out how you got 3 columns in the first place.
Can we see your create() call for it? Are you using insertLVColumn() anywhere? If
you only need two columns your create() call could look like this ...


  myLV = create(ListView, {"Key", "Data"}, ... ,LVS_REPORT)

And if you know how wide you want them at the outset you could create it that
way too...

  myLV = create(ListView, {{"Key",100,0}, {"Data",400,0}}, ... ,LVS_REPORT)

will create two columns, 100 and 400 pixels wide respectively.

-- 
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu