Re: Elements for inactive additional selections
"'seasoned_geek' via scintilla-interest" <[email protected]>
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, March 27, 2024 at 2:13:48 AM UTC Neil Hodgson wrote: [email protected]: Is there a way within Scintilla of physically disabling the SELECTION_INACTIVE_BACK element? "Just not setting it" lets it pull in the OS default. Elements can be set to nothing with SCI_RESETELEMENTCOLOUR but that is unlikely to help here as another element, commonly SELECTION_BACK, will be used. If you reset all the potential choices for selection background then Scintilla will draw with bugColour (which is magenta) since it *has* to clear those otherwise uninitialized pixels to provide a consistent appearance. I suspected there was no "just turn it off" switch because I didn't see any mention of it in the documentation Until more progress is seen, use SC_LAYER_OVER_TEXT in preference to SC_LAYER_UNDER_TEXT as that requires multi-phase drawing. With both of those no selection color is displayed. Clicking off-window wipes text from screen. That brings up the next potential issue: what is PHASESDRAW set to? SC_PHASES_MULTIPLE is the safest choice and should be used until drawing is correct. Once drawing is correct, this may be dialled down to SC_PHASES_TWO for performance if needed. Unknown. I never touch this. I will be out much of today. When I stopped working on this last night I hit the snag that the "older" debian package of CopperSpice appears to need a tweak/regression with the RedDiamond build process because CMake couldn't find its config file. I vaguely remember this from last year but was too tired. Without a way to physically turn off inactive selection highlighting there is no way to fix this from within Scintilla. I have to roll back CopperSpice to a version without the bug. Until their QTextEdit module actually implements the same feature the team behind CopperSpice aren't going to fix this. If I have to fix it, I will be creating an official fork of CopperSpice because they are unresponsive to the users. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/22374c29-53a4-48e2-994c-4c8cbb9b8c1an%40googlegroups.com.