Hello..
I have encountered a strange problem (or is this the intended way of 
operation?).

If I use SCI_SETSELALPHA(SC_ALPHA_OPAQUE) (or any other nonnil 
value<SC_ALPHA_NOALPHA) it would 
seem like the alpha controls how visible the TEXT is through the background, 
and not how visible an 
eventual marker/anything other would be through the selection.

Seems like the background is really the foreground and the other way around.

An example:

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.

In my opinion it would be more correct to draw the backgrounds (with the alpha 
settings) as they should be, THEN 
draw the text (in the foreground color). It would also be more logical, 
especially as the documentation states:for
SCI_SETSELALPHA:
"The selection background can be drawn translucently in the selection 
background colour by setting an alpha value."

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.

Rgds
Jan M.
====>>>> Delphi Scintilla Interface Components 
(http://delphisci.sourceforge.net) <<<<====

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to