Author Topic: Splash screen problem  (Read 795 times)

Offline gd_on

  • Regular
  • ***
  • Posts: 411
Splash screen problem
« 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
Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10891
    • Travis build status
Re: Splash screen problem
« Reply #1 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Regular
  • ***
  • Posts: 411
Re: Splash screen problem
« Reply #2 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
« Last Edit: April 28, 2018, 05:47:41 pm by gd_on »
Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Online stahta01

  • Lives here!
  • ****
  • Posts: 6240
    • My Best Post
Re: Splash screen problem
« Reply #3 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.
 
« Last Edit: April 28, 2018, 06:19:15 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10891
    • Travis build status
Re: Splash screen problem
« Reply #4 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. :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Regular
  • ***
  • Posts: 411
Re: Splash screen problem
« Reply #5 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

Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10891
    • Travis build status
Re: Splash screen problem
« Reply #6 on: April 28, 2018, 08:16:56 pm »
Volunteers to debug this?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1872
Re: Splash screen problem
« Reply #7 on: April 29, 2018, 01:10:26 am »
if i can reproduce this...

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1872
Re: Splash screen problem
« Reply #8 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...

Offline Miguel Gimenez

  • Multiple posting newcomer
  • *
  • Posts: 89
Re: Splash screen problem
« Reply #9 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
« Last Edit: May 01, 2018, 08:59:05 pm by Miguel Gimenez »

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1872

Offline gd_on

  • Regular
  • ***
  • Posts: 411
Re: Splash screen problem
« Reply #11 on: May 02, 2018, 12:21:27 pm »
It looks OK now.
Thanks all :)

gd_on
Windows 10 or 7, svn C::B (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 or 3.1.1 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64