]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIConsole.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWxGUIConsole.cxx
index e19fb0e8f97e1f55e28c0f3ffeab28f75e9f29b9..f17868c7756ce8b2184299ea14e46b894f83e34c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIConsole.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/06/19 09:46:41 $
-  Version:   $Revision: 1.13 $
+  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
@@ -153,8 +153,11 @@ namespace bbtk
     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);
 
@@ -412,7 +415,7 @@ namespace bbtk
   // 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);
   }
   //================================================================