This project is read-only.

Color of selection while window is inactive

Topics: User Forum
Jul 5, 2013 at 8:41 PM
I know that we can change the color of selected text but only if the window is active.
When the window is inactive the color of the selection will change (depending on the theme in windows I think) to gray.
In Windows Notepad the color of the selection will not change. Here is a screenshot where both Notepad and ScintillaNET windows are inactive:

Image

Is it possible to keep the selection color in ScintillaNET while the window is inactive?
Jul 9, 2013 at 5:09 AM
I believe the properties you're looking for are called Scintilla.Selection.BackColorUnfocused and Scintilla.Selection.ForeColorUnfocused.

Jacob
Jul 9, 2013 at 9:03 PM
Oh, how could I miss that.
Thanks :)