Author Topic: Show/hide tabs in message pane  (Read 6102 times)

sethjackson

  • Guest
Show/hide tabs in message pane
« on: March 05, 2006, 04:01:13 pm »
I have noticed a problem with this. When you hide a page in the message pane and the show it again the icon is not correct. It is just the generic one. Ex: the Debugger icon is a gear. Hide the Debugger tab, show it, and the icon is the default icon (pad of paper with a pencil).

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Show/hide tabs in message pane
« Reply #1 on: March 05, 2006, 04:15:55 pm »
This is a known issue. Hiding/showing message tabs is not yet 100% complete.
Be patient!
This bug will be fixed soon...

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Show/hide tabs in message pane
« Reply #2 on: March 05, 2006, 04:33:31 pm »
Well, this patch should fix this issue:
Code
Index: src/sdk/messagemanager.cpp
===================================================================
--- src/sdk/messagemanager.cpp  (revision 2137)
+++ src/sdk/messagemanager.cpp  (working copy)
@@ -479,6 +479,7 @@
     {
         m_pNotebook->GetImageList()->push_back(bitmap);
         m_pNotebook->SetPageImageIndex(index, m_pNotebook->GetImageList()->size() - 1);
+        m_Logs[id]->bitmap = bitmap;
     }
 }

I'm not sure if the copy of the bitmap gets destroyed as it should, but (during my little tests) at least the tabs got the correct icon after showing them again.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

sethjackson

  • Guest
Re: Show/hide tabs in message pane
« Reply #3 on: March 05, 2006, 06:28:54 pm »
 8) Hope it gets committed soon. :)