News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

About background colour of symbols window

Started by lfm, May 24, 2006, 07:26:43 AM

Previous topic - Next topic

mandrav

Quote from: sethjackson on May 24, 2006, 03:22:44 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

#16
This is how to "fix" (I'm not saying this code should go in SVN trunk just proving my point....).

Code (diff) Select

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);




sethjackson

Quote from: mandrav on May 24, 2006, 03:28:38 PM
Quote from: sethjackson on May 24, 2006, 03:22:44 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

mandrav

OK, I think I see why this happens. Give me a few minutes...
Be patient!
This bug will be fixed soon...

tiwag

Quote from: mandrav on May 24, 2006, 03:28:38 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

#20
Quote from: tiwag on May 24, 2006, 03:32:12 PM
Quote from: mandrav on May 24, 2006, 03:28:38 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:


mandrav

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

Quote from: mandrav on May 24, 2006, 03:46:34 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