in reply to Scintilla Background

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Scintilla Background
by beech (Parson) on Mar 13, 2017 at 23:15 UTC

    Hi

    In this line  $nb->SetBackgroundColour(Wx::Colour->new(0, 0, 0));  # black, not working

    $nb is not $editor, try $editor, try

    $editor->StyleSetBackground( Wx::wxSTC_STYLE_LINENUMBER(), Wx::wxRED() + ) ; $editor->StyleSetBackground( Wx::wxSTC_STYLE_DEFAULT(), Wx::wxBLACK() +) ;
      Thanks this is working but when I type into the editor the text has still the background white, I want white text on black background. What are those style numbers like wxSTC_STYLE_DEFAULT.
Re: Scintilla Background
by nysus (Parson) on Mar 13, 2017 at 20:06 UTC

    Were you looking for help? Place any code between <code> CODE GOES HERE </code> tags.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks