There is a message SCI_SETSELFORE that sets the foreground color of the active text. This color is not applied to the inactive text.
There is a message SCI_SETELEMENTCOLOUR that sets a color of any element.
Because of that, should we consider SCI_SETSELFORE obsolete?
The SCI_SETSELFORE documentation mentiones "The element APIs are now preferred as they handle translucency + layering and cooperation with defaults better", and there are two problems with this text:
1. It does not explicitly mark SCI_SETSELFORE as obsolete;
2. It does not explicitly mention the name of the SCI_SETELEMENTCOLOUR message.
Action item: please update the ScintillaDoc by adding an explicit text for SCI_SETSELFORE such as "SCI_SETSELFORE does not set the inactive text foreground color and is obsolete, please use SCI_SETELEMENTCOLOUR instead". Even for more clarity, for SCI_SETELEMENTCOLOUR the documentation may say: "this message replaces the obsolete SCI_SETSELFORE".
1)
SCI_SETSELFOREis not obsolete.2) There is a link to the 'element APIs' which include
SCI_SETELEMENTCOLOUR.SCI_SETSELFOREis currently discouraged which is marked by orange strike out. The 'discouraged' state is documented in the "Deprecated and discouraged messages and notifications" section.SCI_SETSELFOREis immediately preceded bySC_ELEMENT_SELECTION_TEXT.SCI_SETSELFOREcould setSC_ELEMENT_SELECTION_INACTIVE_TEXTand that may be more compatible with 4.x for applications that currently call it.