From: <dbs...@ju...> - 2005-10-07 23:18:55
|
I am using Perl V5.8.4 and Wxperl 0.23 Not sure how to change an icon for a wxListCtrl, would appreciate any help. the following is snips of my code $this->{IMAGELIST} = Wx::ImageList->new( 16, 16, 1 ); $this->{IMAGELIST}->Add( Wx::Bitmap->new( "bitmaps/CheckBox.ico", wxBITMAP_TYPE_ICO )); $this->{IMAGELIST}->Add( Wx::Bitmap->new( "bitmaps/CheckBoxMarked.ico", wxBITMAP_TYPE_ICO )); ... while (<$file> ) { my @user = split (/:/,$_); my $idx = $list->InsertImageStringItem( $i, "", 0 ); $list->SetItem( $idx, 0, split (/:/,$user[0]) ); $list->SetItem( $idx, 1, "*empty*" ); $list->SetItem( $idx, 2, "*" ); ... #this will use the CheckBox.ico in the first column of all the items (rows). # now I want to change the icon to the CheckBoxMarked.ico for item 0 (row 0). ......... $this->{IMAGELIST}->Replace(0, "bitmaps/CheckBoxMarked.ico"); # this causes the following error #unable to resolve overloaded method for Wx::ImageList::Replace at....................... Dean |