Hi, I have an RTC on a dark background with the default text colour set to light. I over-ride these and set the background RTC colour to white with:
my $RTC = Wx::RichTextCtrl->new($self,-1,'',[-1,-1]$size);
$RTC->SetBackgroundColour(wxWHITE);
which works perfectly, but the corresponding effort to set the text colour
to black with:
$RTC->SetForegroundColour(wxBLACK);
does not work.
I've tried a number of other ways without success, eg:
my $RTC_Attr = Wx::RichTextAttr->new();
$RTC_Attr -> SetTextColour(wxBLACK);
$RTC -> SetDefaultStyle($RTC_Attr );
Which also doesn't work because it wants a range. It's not clear to me how
to set the basic text colour of the RTC control.
Any ideas much appreciated.
Regards
Steve
<<Blank Bkgrd.gif>>
