Program: bbtk
Module: $RCSfile: bbtkWxGUITextEditor.cxx,v $
Language: C++
- Date: $Date: 2009/04/15 15:45:49 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2009/12/04 10:48:34 $
+ Version: $Revision: 1.21 $
=========================================================================*/
/* ---------------------------------------------------------------------
// | wxTAB_TRAVERSAL
);
*/
- wxFont* FixedFont = new wxFont(10,
+ mFixedFont = new wxFont(10,
wxFONTFAMILY_MODERN,
wxFONTSTYLE_NORMAL,
wxFONTWEIGHT_NORMAL,
false);
mwxInputTextAttr = new wxTextAttr;
- mwxInputTextAttr->SetFont(*FixedFont);
+ mwxInputTextAttr->SetFont(*mFixedFont);
sizer->Add(mwxInputText,1,wxGROW);
SetSizer(sizer);
//================================================================
WxGUITextEditorPage::~WxGUITextEditorPage()
{
+ delete mwxInputTextAttr;
+ delete mFixedFont;
}
//================================================================
SetSizer(sizer);
// parent window of all bbtk windows will be a child of this
- Wx::SetTopWindowParent(this);
+ // Wx::SetTopWindowParent(this);
+ Wx::SetTopWindow(this);
// Add the method OnWxSignal as a Wx::Signal observer
//bbtkAddWxSignalObserver(WxGUITextEditorWindow::OnWxSignal);