Jan Martin Pettersen:
Set the selection foreground to Yellow, background to blue, and SC_ALPHA_OPAQUE.
Try to select some text.
Result: No visible text, the entire block is drawn with the blue background
color.
This is the expected result. The alpha selection is drawn over all
of the resulting text and background colours as one of the last stages
in drawing. It affects the text as well since if the selection colour
is the similar to a background colour then it may only be visible as a
change to the foreground.
One of the major points of translucency support is to be visible
(without overwhelming the underlying style) over a wider range of
styles such as when a language (like Perl) has so many styles defined
that background colours are used for differentiation. For the next
release of SciTE, I'll probably change the default selection to
#000000, alpha=30 for this reason.
"The selection background can be drawn translucently in the selection
background colour by setting an alpha value."
I'll change that by removing the first "background".
The same goes these commands: SCI_MARKERSETALPHA,
SCI_SETCARETLINEALPHA, SCI_SETSELALPHA.
All those is said to operate on the background, but seemingly
draws the background on top of the text, which causes
the text to be the one which disappears as the alpha value increases.
SCI_MARKERSETALPHA is not said to operate on the background.
SCI_SETCARETLINEBACKALPHA should have been named
SCI_SETCARETLINEALPHA. The explanation says it "will affect the colour
of all other features".
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest