Discussion:
SETADDITIONALSELFORE has no effect without SETSELFORE
Paul K
2014-01-21 23:19:44 UTC
Permalink
Hi Neil,

I've been working with styling additional selections and ran into an
interesting issue. It seems like SetAdditionalSelFore doesn't seem to have
any effect until a call for SetSelFore is made. Is this a feature? Also,
SetSelFore and SetSelBack set colors for all selections, which does make
sense, but it may be useful to mention this in the documentation for
SetAdditionalSel* methods. Thank you.

Paul.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2014-01-21 23:49:41 UTC
Permalink
I've been working with styling additional selections and ran into an interesting issue. It seems like SetAdditionalSelFore doesn't seem to have any effect until a call for SetSelFore is made. Is this a feature?
There are two arguments to SetSelFore which set independent properties: useSelectionForeColour and colour. SetAdditionalSelFore only has a colour argument so is incapable of setting whether or not to use selection foreground colours.
Also, SetSelFore and SetSelBack set colors for all selections, which does make sense, but it may be useful to mention this in the documentation for SetAdditionalSel* methods.
Do you have a proposal for wording?

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Paul K
2014-01-22 00:30:01 UTC
Permalink
Post by Neil Hodgson
Do you have a proposal for wording?
Maybe something like this (I copied the first sentence without changes):

Modify the appearance of additional selections so that they can be
differentiated from the main selection which has its appearance set with
SCI_SETSELALPHA <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELALPHA>
,SCI_GETSELALPHA<http://www.scintilla.org/ScintillaDoc.html#SCI_GETSELALPHA>
, SCI_SETSELFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELFORE>,
and SCI_SETSELBACK<http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELBACK>
. *SCI_SETADDITIONALSELFORE *and *SCI_SETADDITIONALSELBACK* calls have no
effect until SCI_SETSELFORE<http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELFORE>
and SCI_SETSELBACK<http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELBACK> are
called with useSelection*Colour value set to true. Subsequent calls to
SCI_SETSELFORE <http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELFORE>,
and SCI_SETSELBACK<http://www.scintilla.org/ScintillaDoc.html#SCI_SETSELBACK> will
overwrite the values set by SCI_SETADDITIONALSEL* functions.

(I'm not sure if any of this applies to ALPHA calls as well).

Paul.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2014-01-22 01:38:44 UTC
Permalink
...
OK.
https://sourceforge.net/p/scintilla/code/ci/b0d168f979592a652e8314952aca652b8eddc1ab/

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...