Page 1 of 1

Selection Color (Text and Background) changed when losing focus?

Posted: Sat Dec 30, 2023 5:22 pm
by Axolotl
Hi #PB_All

I have noticed a strange behavior with the selection colors on my system....
This is probably not only the case with PB 6.
Steps to reproduce:
1. Select a text in the editor (selection colors are as defined in File|Settings...|Coloring|Selection text and selection background)
2. Click on the corresponding tab (selection colors change to not/never defined ones... but highlighting is working now)

I have no idea if this is a bug or a feature.

Happy coding and stay healthy.

Re: Selection Color (Text and Background) changed when losing focus?

Posted: Fri Jan 12, 2024 2:06 pm
by fryquez
The new scintilla has this new "feature" to change the selection color if the window loses focus.

adding

Code: Select all

ScintillaSendMessage(Gadget, #SCI_SETELEMENTCOLOUR, #SC_ELEMENT_SELECTION_INACTIVE_BACK, Colors(#COLOR_Selection)\UserValue)
to ScintillaHighlighting.pb --> SetBackgroundColor() should change it back like it was before.

Re: Selection Color (Text and Background) changed when losing focus?

Posted: Sat Jan 13, 2024 5:56 pm
by Axolotl
Thanks fryquez,

I added that command in one of my IDE-Tools (with static color) and it worked very well for me.