Home: Perl Programming Help: Win32 Programming Help:
populating ListView



tdicamillo
New User

Jul 22, 2010, 11:30 AM


Views: 11789
populating ListView

I have a ListView object, but how do I add strings to it? I want to be able to scroll through and select the strings I want, but after many attempts of different ways to populate the list, nothing shows up in the list.


Zhris
Enthusiast

Jul 22, 2010, 4:22 PM


Views: 11763
Re: [tdicamillo] populating ListView

What code have you tried so far?

Chris


tdicamillo
New User

Jul 23, 2010, 6:11 AM


Views: 11696
Re: [Zhris] populating ListView

I figured it out... the trick was to first use InsertItem and then use SetItem to set the text for that item. Tried about 800 other combinations of InsertItem() and Add() before getting this. It makes sense now, but the documentation about ListView objects in PERL is pretty vague.