Program: bbtk
Module: $RCSfile: bbtkWxGUIOutputMessages.cxx,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:15 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2009/12/09 08:46:20 $
+ Version: $Revision: 1.4 $
=========================================================================*/
/* ---------------------------------------------------------------------
wxTE_READONLY |
wxTE_MULTILINE );
- wxFont* FixedFont = new wxFont(10,
+ mFixedFont = new wxFont(10,
wxFONTFAMILY_MODERN,
wxFONTSTYLE_NORMAL,
wxFONTWEIGHT_NORMAL,
false);
mwxOutputTextAttr = new wxTextAttr;
- mwxOutputTextAttr->SetFont(*FixedFont);
+ mwxOutputTextAttr->SetFont(*mFixedFont);
sizer->Add ( mwxOutputText, 1, wxGROW);
// Redirection of std::cout to mwxTextHistory and printf
{
delete mRedirect_cout;
delete mRedirect_cerr;
-
+ delete mwxOutputTextAttr;
+ delete mFixedFont;
}
void WxGUIOutputMessages::Print(const std::string& message,
Program: bbtk
Module: $RCSfile: bbtkWxGUIOutputMessages.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:15 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2009/12/09 08:46:21 $
+ Version: $Revision: 1.4 $
=========================================================================*/
/* ---------------------------------------------------------------------
WxGUIOutputMessagesUser* mUser;
wxTextCtrl* mwxOutputText;
wxTextAttr* mwxOutputTextAttr;
+ wxFont* mFixedFont;
WxStreamRedirector* mRedirect_cout;
WxStreamRedirector* mRedirect_cerr;
/*