in reply to Re^2: wxPerl: is wxListCtrl Get/SetItemFont implemented? and further important questions
in thread wxPerl: is wxListCtrl Get/SetItemFont implemented? and further important questions
Yes, hdb has a point about the OnRed method using:
$this->{listCtrl}->SetItemTextColour( 0, wxRED );
But also the event handler method is has to be written like this:
EVT_BUTTON( $self, $btnBold, sub { $self->OnBold } );
The OnBold method is in the current package.
Another remark is that you can skip all the use.+ stuff until the first package declaration in your code examples, they are not needed and is recommended to keep the posts as short as possible. It is also better for debugging, to not load unused modules.
Regards, Stefan.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: wxPerl: is wxListCtrl Get/SetItemFont implemented? and further important questions
by HelenCr (Monk) on Mar 25, 2013 at 21:50 UTC |