Front page | perl.wxperl.users |
Postings from July 2008
Re: AW: listctrl
From:
Erik Colson
Date:
July 9, 2008 05:56
Subject:
Re: AW: listctrl
Message ID:
4874B55F.3010306@ecocode.net
Daniel wrote:
> Hi,
>
> I suggest to use wx::ListView
> It's nearly the same as wx::ListCtrl, but you can easyer seach selected items.
>
> Here's a sample, copy, paste and run:
>
<snip>
> my $idx = $myListView -> InsertStringItem( $row, $items[0]); #insert the first item at the first line and row
>
> for $row (1 .. $#items) {
> $myListView -> SetItem( $idx, $row, $items[$row] ); #insert the other items
> }
>
Hello Daniel,
Thanks for your answer.
I'd like to do more than copy, paste and run ;)
understanding the thing would be great!
So why the hell do I need to insert the first element with
InsertStringItem and then add the others with SetItem ? And why do I
need that $idx ?
Thanks again for your help!
--
Erik Colson
http://www.ecocode.net