Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxFlatNotebook update + Patch
thomas:
Is "selected" synonymous to "given focus"?
I guess if "selected" only means "becomes topmost tab" then it is quite harmless (and even intuitive).
Der Meister:
Yes, it has the focus, it is displayed and is the topmost tab. Whether this is intuitive or not is another question. I would even prefer that the tab that was selected before stays selected and the "new one" is only placed between the other inactive tabs. I guess that was the originally intended behaviour.
But with a quick look at the roadmap I would say we should apply this little patch (even if the behaviour is not as intuitive than before - that is my opionion, maybe the others think different) as a workaround for this problem rather than spending hours or even days on searching and fixing the real problem.
mandrav:
HEAD updated to wxFNB 1.30.
sethjackson:
--- Quote from: mandrav on May 08, 2006, 10:36:21 pm ---HEAD updated to wxFNB 1.30.
--- End quote ---
Yay! 8)
Aww bugs.... :P
Do this.
1. Right click on a messages tab.
2. Show/Hide a visible tab.
3. Show/Hide the same tab (making it visible).
4. Not good. :P
Fix.
--- Code: (diff) ---Index: src/sdk/messagemanager.cpp
===================================================================
--- src/sdk/messagemanager.cpp (revision 2421)
+++ src/sdk/messagemanager.cpp (working copy)
@@ -337,8 +337,6 @@
SetLogImage(id, ls->bitmap);
ls->visible = true;
- log->Show(false);
-
if (id == m_DebugLog)
cfg->Write(_T("/has_debug_log"), (bool)true);
}
@@ -350,8 +348,6 @@
m_pNotebook->RemovePage(id);
ls->visible = false;
- log->Show(false);
-
if (id == m_DebugLog)
cfg->Write(_T("/has_debug_log"), (bool)false);
}
--- End code ---
Posted to the tracker.
https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1038&group_id=5358
MortenMacFly:
Well... there is something wrong with how this is applied in SVN. Currently the cb_wxfn.patch holds the patch how to update the C::B sources to wxFlatNotebook 1.30-patched. My intention was to provide the patch how to change the original wxFNB sources (v1.30) to the way they are used in SVN.
I've attached a patch to this post (to be applied to the SVN sources) that will:
1.) Update the cb_wxfn.patch file to really have the changes applied within C::B in comparision to wxFNB v1.30
2.) Update the readme file
3.) Apply one minor change to wxFlatNotebook I've missed
With regards, Morten.
Edit: Removed patch to save forum space. It has been applied already.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version