Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sodev on May 02, 2018, 04:40:46 pm

Title: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: sodev on May 02, 2018, 04:40:46 pm
As the title says, this was not present in r11222 but is present in r11374, so it must have been introduced between there. Happens only when linked against wxWidgets 2.8.12, does not happen when linked against current wxWidgets master 3.1.2. Only tested on Windows 10, not sure if Linux is also affected. Looks pretty ugly, see attached screenshots.
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: BlueHazzard on May 02, 2018, 08:01:33 pm
Just out of curiosity, do we need to support wx2.8? How long is a support for wx2.8 planed?
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 02, 2018, 08:24:18 pm
Just out of curiosity, do we need to support wx2.8? How long is a support for wx2.8 planed?
Until I see if I can make wxGTK 3.x work on CentOS 6 :)

@sodev: Yes there are some changes related to this. Can you look in the occurrence highlight settings to see if there is a way to fix this?
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: sodev on May 03, 2018, 06:50:15 pm
What settings are you referring to, the recent colour configuration changes? Anyway, these aren't the cause of this, i did some tests. Last working revision is r11321, right the one before the Scintilla update. The next revision i built was r11336, after the bunch of Scintilla commits you did, and since then its broken.

So looks like Scintilla is the cause, i don't know anything about it so im afraid i cannot fix this without lots of time i don't have atm. And because the wx 3.1.x builds are working without problems for me now so far (except some menu entries with bitmaps have a lower height than all the others, but this seems to be a wxWidgets problem, and redraw errors of the toolbars with the standard sized icon set which are fixed by using the big sized icon set) i don't see an urgent need to fix that ::)
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 03, 2018, 09:58:39 pm
I'm talking about the occurrence highlight settings in the Settings -> Editor.
There are plenty of options like colours, alpha and others. Please try them and let me know if they change anything.

Please report these problems on the tickets page in sf.net, so they are not forgotten!
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: sodev on May 04, 2018, 12:39:04 am
Oh, got it, fixing things by clicking buttons and not by writing code ;D.

Well, changing the color changes the color of the box but it stays solid. The alpha settings do nothing. Enabling Override Text Color however makes the text visible in the specified color. Now after disabling Override Text Color again the text is even visible in its original color, but this effect does not survive a restart of CodeBlocks, after that the box stays solid again.

All settings work as intendet with wxWidgets 3.1.2.
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 04, 2018, 01:19:02 am
Can you show me some screen shots?
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: Jenna on May 04, 2018, 05:55:33 am
Linux seems is not to be affected, see attached screenshot.
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 04, 2018, 08:08:45 am
Jens: Yes, I know, I've tested it. :)
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: sodev on May 04, 2018, 05:00:26 pm
These two screenshots show how the highlight looks with overriding text color enabled using the default color and that "self-repaired" state after disabling the override.
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 04, 2018, 06:44:04 pm
OK, I guess I've skipped some modified wxscintilla code which is only needed on windows and 2.8. I'll take a look.
Title: Re: Occurrences Highlights are solid instead transparent on wxWidgets 2.8
Post by: oBFusCATed on May 08, 2018, 11:57:35 pm
Fix in rev 11398.