Control -> EdgeColor ?

Jul 24, 2007 at 11:27 AM
Hi,

what is the property EdgeColor for, in the Scintilla Control?

Is there a possibility to change the color of the left edge of the Scintilla Control?
Is there a possibility to change the background color of the Scintilla Control?

Greets,
DomiOh
Coordinator
Jul 24, 2007 at 3:23 PM
what is the property EdgeColor for, in the Scintilla Control?
http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_SETEDGECOLOUR
You can use this for a vertical line on the right or as a indicator that a line is very long

Is there a possibility to change the color of the left edge of the Scintilla Control?
http://scintilla.sourceforge.net/ScintillaDoc.html#StyleDefinition
This is actually a pretty complicated subject so I'll cut to the code to do it in the default setup
scintillaControl.StyleSetBack((int)Scintilla.Enums.StylesCommon.LineNumber, Color.Azure);

Is there a possibility to change the background color of the Scintilla Control?
Same thing here. Now this code assumes that you haven't assigned a lexer, which sets style numbers based upon syntax. In this case the entire document will have a style of 0. This code changes all style 0 to have a different background color.
scintillaControl.StyleSetBack(0, Color.Red);

Basically the trick to learning how ScintillaNET works is learning how Scintilla works. For the most part ScintillaNET is a thin wrapper around Scintilla.
Jul 24, 2007 at 3:50 PM
very much thanks for the time you took to answer my questions.

I think I will read the scintilla documentation to learn how it works.