Well, I've been trying to track Problem 1 above. My endevor is showing that it is not with the wxSplitterWindow--this seems to work OK. The problem seems to be with the ProjectManager's wxTreeCtrl. But what is strange is that it works OK with the EditorManager's wxTreeCtrl. I've "turned each off" leaving only one on (unsplit) and also swapped which split they are in. Each time, the EditorManager's wxTreeCtrl functions properly while the ProjectManager's wxTreeCtrl doesn't (invisible). I know that the ProjectManager's wxTreeCtrl is set to "Show"--it just doesn't. Even when I don't set the EditorManager's wxTreeCtrl in a split window it shows in the wxSplitterWindow ( as it is still a child to the parent using Show() ).
It must have something to do with how the ProjectManager's wxTreeCtrl is constructed or having items added to it that somehow differs from the EditorManager's wxTreeCtrl.
Could it be that the EditorManager is adding a "sizer" to the notebook?
Line 124: new wxNotebookSizer(m_pNotebook);
Should this be done in the Manager class instead? (and obviously not using the depreciated method in wx2.6.1)
Any ideas?
I've recompiled with a current CVS update of HEAD. Here are the wx2.6.1 incompatabilities so far.
I'm getting a compile error for wxHandleFatalExceptions():
src\app.cpp: In member function `virtual bool CodeBlocksApp::OnInit()':
src\app.cpp:214: error: `wxHandleFatalExceptions' undeclared (first use this function)
src\app.cpp:214: error: (Each undeclared identifier is reported only once for each function it appears in.)
I seems that "wxHandleFatalExceptions()" is only defined when "wxUSE_ON_FATAL_EXCEPTION" is set to 1. Its only supposed to be used when the compiler "supports Win32 structured exception handling (currently only VC++ does)" . Its defined in wx/msw/chkconf.h as follows (due to the use of mingw):
#if !defined(_MSC_VER) && \
(!defined(__BORLANDC__) || __BORLANDC__ < 0x0550)
#undef wxUSE_ON_FATAL_EXCEPTION
#define wxUSE_ON_FATAL_EXCEPTION 0
...
To check in app.cpp, I've changed/added the code as follows:
bool CodeBlocksApp::OnInit()
{
m_pSplash = 0;
#if wxUSE_ON_FATAL_EXCEPTION // <-- added
wxHandleFatalExceptions(true);
#endif // <-- added
if(!LoadConfig())
return false;
Also getting warnings in EditorManager:
sdk\editormanager.cpp: In constructor `EditorManager::EditorManager(wxWindow*)':
sdk\editormanager.cpp:124: warning: `__comp_ctor' is deprecated (declared at ../../wxWidgets/wxWidgets-2.6.1/include/wx/sizer.h:788)
sdk\editormanager.cpp: In member function `void EditorManager::ActivateNext()':
sdk\editormanager.cpp:443: warning: comparison between signed and unsigned integer expressions
sdk\editormanager.cpp: In member function `int EditorManager::FindPageFromEditor(EditorBase*)':
sdk\editormanager.cpp:643: warning: comparison between signed and unsigned integer expressions