Program: bbtk
Module: $RCSfile: bbtkWxConsole.cxx,v $
Language: C++
- Date: $Date: 2008/03/07 08:40:14 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/03/10 06:24:13 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace bbtk
{
- WxConsole* WxConsole::mInstance = 0;
+
// On Windows when compiling a dll, wx prevents the compilation
// of the class wxStreamToTextRedirector (why ? it is a nightmare...)
// The blocking symbol is wxHAS_TEXT_WINDOW_STREAM.
WxConsole::WxConsole( wxWindow *parent, wxString title, wxSize size)
: wxFrame((wxFrame *)parent, -1, title, wxDefaultPosition, size)
{
- mInstance = this;
+
mInterpreter = new bbtk::Interpreter();
mInterpreter->SetWxConsole(this);
mInterpreter->SetCommandLine(true);
new WxTextCtrlStreamRedirector(std::cerr,mwxTextHistory,*wxGREEN,true);
// Sets the console as the parent window of all bbtk windows
- Wx::SetTopWindow(this);
+ wxFrame* top = new wxFrame(this,-1,_T("invisible"));
+ Wx::SetTopWindow(top);
// Layout
//EED SetSizer(sizer);
SetAutoLayout(true);
Layout();
-
+ Refresh();
}
//================================================================