Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Help wanted => Topic started by: gd_on on April 28, 2018, 04:40:57 pm

Title: Splash screen problem
Post by: gd_on on April 28, 2018, 04:40:57 pm
Due to a recent C::B patch (but I don't remember which one), I observe a problem with splash screen : it is always on the foreground so it can masks other windows. Example, if I delete my defaut.conf then restart C::B, the window to choose a defaut compiler is partially masqued. You need to move it, to make your compiler choice.

gd_on
Title: Re: Splash screen problem
Post by: oBFusCATed on April 28, 2018, 05:10:55 pm
Can you clarify which commit you think it broke it?
Have you tried to click on the splash screen it should go away?
Title: Re: Splash screen problem
Post by: gd_on on April 28, 2018, 05:33:26 pm
Quote
Can you clarify which commit you think it broke it?

May be svn 11318, but that's not sure. Just a supposition.

Quote
Have you tried to click on the splash screen it should go away?

It does not ! (at least on the example shown before)

 I tried with C::B generated in 32 or 64 bits, wxwidgets 2.8.12 or 3.0.3 : same problem. I'm on Windows 7.

gd_on
Title: Re: Splash screen problem
Post by: stahta01 on April 28, 2018, 05:53:12 pm
Due to a recent C::B patch (but I don't remember which one), I observe a problem with splash screen : it is always on the foreground so it can masks other windows. Example, if I delete my defaut.conf then restart C::B, the window to choose a defaut compiler is partially masqued. You need to move it, to make your compiler choice.

gd_on

Are you using Windows 10; I ask because I assumed the Windows 10 monthly update caused the problem.

Edit: Add my Win 10 Version info
Windows 10 Pro (32 bit)
Version 1709 (OS Build 16299.371)


Tim S.
 
Title: Re: Splash screen problem
Post by: oBFusCATed on April 28, 2018, 06:03:41 pm
May be svn 11318, but that's not sure. Just a supposition.
Can you try to revert this commit to see if this is causing the problem?
I'm running linux, so I cannot easily tests this. :(
Title: Re: Splash screen problem
Post by: gd_on on April 28, 2018, 07:06:19 pm
I tried to revert to svn 11317. It's OK, no such splash screen masking problem.
Then to svn 11318 : the problem appears.

As told before, I'm on Windows 7 64 bits.
My signature tells Win10, but it's not the case on this specific PC (I had to revert because of compatibility problems with win10 build 1703 !). :-[

gd_on

Title: Re: Splash screen problem
Post by: oBFusCATed on April 28, 2018, 08:16:56 pm
Volunteers to debug this?
Title: Re: Splash screen problem
Post by: BlueHazzard on April 29, 2018, 01:10:26 am
if i can reproduce this...
Title: Re: Splash screen problem
Post by: BlueHazzard on April 29, 2018, 03:13:04 am
Ok i can reproduce it and this is annoying because the splashscreen can not be minimized. It hides all programs not only the codeblocks frame...
Easy and fast fix:
remove the wxSTAY_ON_TOP  flag in src/splashscreen.cpp:25
Code: [Select]
cbSplashScreen::cbSplashScreen(const wxBitmap& bitmap)
  : wxSplashScreen(bitmap, wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_NO_TIMEOUT,
                   0, nullptr, wxID_ANY, wxDefaultPosition, wxDefaultSize,
-                  wxBORDER_NONE | wxFRAME_NO_TASKBAR | wxFRAME_SHAPED | wxSTAY_ON_TOP  )
+                  wxBORDER_NONE | wxFRAME_NO_TASKBAR | wxFRAME_SHAPED)
{
}

or add a timeout...
Title: Re: Splash screen problem
Post by: Miguel Gimenez on May 01, 2018, 02:20:08 pm
Please create a ticket with the patch, as this thread will be history soon.

Edit: ticket not needed, corrected in SVN three hours ago
Title: Re: Splash screen problem
Post by: BlueHazzard on May 01, 2018, 10:16:29 pm
https://sourceforge.net/p/codeblocks/tickets/678/
Title: Re: Splash screen problem
Post by: gd_on on May 02, 2018, 12:21:27 pm
It looks OK now.
Thanks all :)

gd_on