Author Topic: About background colour of symbols window  (Read 16090 times)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: About background colour of symbols window
« Reply #15 on: May 24, 2006, 03:28:38 pm »
Yes, but the real problem is wxFNB.

Yes, wxFNB was responsible back when we didn't use a panel for those comboboxes above the symbols browser.
But it isn't responsible anymore. It can't be. There's a wxPanel there. I don't understand why it behaves like that for you guys. As you can see from my screenshot above, it works fine here. As expected...
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: About background colour of symbols window
« Reply #16 on: May 24, 2006, 03:29:45 pm »
This is how to "fix" (I'm not saying this code should go in SVN trunk just proving my point....).

Code: diff
Index: src/sdk/wxFlatNotebook/wxFlatNotebook.cpp
===================================================================
--- src/sdk/wxFlatNotebook/wxFlatNotebook.cpp (revision 2498)
+++ src/sdk/wxFlatNotebook/wxFlatNotebook.cpp (working copy)
@@ -488,7 +488,7 @@
  m_mainSizer = new wxBoxSizer(wxVERTICAL);
  SetSizer(m_mainSizer);
 
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT));
 
  // Add the tab container to the sizer
  m_mainSizer->Insert(0, m_pages, 0, wxEXPAND);


« Last Edit: May 24, 2006, 03:32:38 pm by sethjackson »

sethjackson

  • Guest
Re: About background colour of symbols window
« Reply #17 on: May 24, 2006, 03:30:52 pm »
Yes, but the real problem is wxFNB.

Yes, wxFNB was responsible back when we didn't use a panel for those comboboxes above the symbols browser.
But it isn't responsible anymore. It can't be. There's a wxPanel there. I don't understand why it behaves like that for you guys. As you can see from my screenshot above, it works fine here. As expected...

mandrav see my post above. This only happens on Windows. The reason is wxSYS_COLOUR_APPWORKSPACE is a different color on Windows than on *nix. :D

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: About background colour of symbols window
« Reply #18 on: May 24, 2006, 03:32:05 pm »
OK, I think I see why this happens. Give me a few minutes...
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: About background colour of symbols window
« Reply #19 on: May 24, 2006, 03:32:12 pm »
... I don't understand why it behaves like that for you guys. As you can see from my screenshot above, it works fine here. As expected...
it doesn't have the heart to misbehave at the boss's computer ... :D

sethjackson

  • Guest
Re: About background colour of symbols window
« Reply #20 on: May 24, 2006, 03:33:13 pm »
... I don't understand why it behaves like that for you guys. As you can see from my screenshot above, it works fine here. As expected...
it doesn't have the heart to misbehave at the boss's computer ... :D

 :lol:

« Last Edit: May 24, 2006, 03:35:02 pm by sethjackson »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: About background colour of symbols window
« Reply #21 on: May 24, 2006, 03:46:34 pm »
First of all, the fix has been committed.

OK, here's what happens.
You 're using the symbols browser docked inside the project manager's notebook, while I 'm using it as a free floating window. When I docked it here too, I saw the problem.
It still doesn't make sense why this happens. There's a panel there. It should paint itself. Period. But it doesn't...
Anyway, as I said, I committed the fix so enough about this :)
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: About background colour of symbols window
« Reply #22 on: May 24, 2006, 04:24:43 pm »
It still doesn't make sense why this happens. There's a panel there. It should paint itself. Period. But it doesn't...

Strange things happens. :P