Program: bbtk
Module: $RCSfile: bbtkWxGUIConsole.cxx,v $
Language: C++
- Date: $Date: 2008/05/15 08:02:36 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2008/07/24 14:37:06 $
+ Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
cmdsizer->Add (mWxGUICommand, 0, wxALL | wxGROW, 5);
- // Creates the parent window of all bbtk windows as a child of this
- Wx::CreateTopWindow(this,true);
+ // Set the parent window of all bbtk windows as a child of this
+ bbtk::Wx::SetTopWindowParent(this);
+ // Top Window Auto Destroys when no more black box window alive
+ // : this is the default
+ // bbtk::Wx::SetAutoDestroyTopWindow(true);
// Add the method OnWxSignal as a Wx::Signal observer
bbtkAddWxSignalObserver(WxGUIConsole::OnWxSignal);
std::string strcommand0 = "cd "+bbdoc_path+" && mkdir tmp && cd tmp";
std::string strcommand1 = "cd "+bbdoc_path+"/tmp";
- std::string strcommand2 = "\""+bin_path+"/bbi\" -n "+make_index_path;
+ std::string strcommand2 = "\""+bin_path+"/bbi\" -N "+make_index_path;
#ifdef WIN32
std::string strcommand3 = "move index*.html ../.";
#else
// Overloaded Show method to handle bbtk::Wx::TopWindow auto-destruction
bool WxGUIConsole::Show(bool show)
{
- Wx::AutoDestroyTopWindow(!show);
+ bbtk::Wx::SetAutoDestroyTopWindow(!show);
return wxFrame::Show(show);
}
//================================================================