Gabor Szabo wrote:
Hi,
I am probably too tired but I don't understand what can be the problem:
$page is a Wx::StyledTextCtrl object
this line works:
$page->MarkerAdd($line_number-1, 0);
though I don't see any visible change on the margin.
This line
$page->MarkerDefine(0, wxSTC_MARK_ARROW, "#000000", "#FFFFFF");
give me
"the invocant must be a reference at lib/Padre/Frame.pm line 659."
exception.
Wx version 0.84
wxWidgets 2.8.7
Perl 5.8.8
Ubuntu 8.04
So what's the problem?
There are two problems; one is that the error message should not
mention the invocant, but the parameter that gave the error; the other
is that you should pass wxColor instances for foreground/background.
Regards,
Mattia