in reply to Re^3: wxPerl: is wxListCtrl Get/SetItemFont implemented? and further important questions
in thread wxPerl: is wxListCtrl Get/SetItemFont implemented? and further important questions
Stefan: when I change, according to yours and hdb's suggestion, the event-binding calls to:
EVT_BUTTON ($self, $btnBold, sub { $self->OnBold }); EVT_BUTTON ($self, $btnRed, sub { $self->OnRed });
and the methods to:
sub OnBold { my $this = shift; my $f = $this->{listControl}->GetItemFont(0); $f->SetWeight(wxBOLD); $this->SetItemFont(0, $f); } #1 end sub OnBold sub OnRed { my $this = shift; $this->{listControl}->SetItemTextColour(0, wxRED); } #1 end sub OnRed
You still get the same error message:
Can't locate object method "GetItemFont" via package "Wx::ListCtrl" at + Set item font post.pl line 59 MyFrame::OnBold('MyFrame=HASH(0x2662734)') called at Set item font +post.pl line 31 MyFrame::__ANON__('MyFrame=HASH(0x2662734)', 'Wx::CommandEvent=SCAL +AR(0x2aef33c)') called at Set item font post.pl line 78 eval {...} called at Set item font post.pl line 78
So it seems that many list control classes are not implemented in wxPerl.
Very frustrating and disappointing. I don't know how to proceed.
Helen
|
---|
In Section
Seekers of Perl Wisdom