]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxBlackBox.cxx
#3073 BBTK Bug New Normal - message documentation in boxes
[bbtk.git] / kernel / src / bbtkWxBlackBox.cxx
index 22f0a6baf910f7859f156803d2afe8857cc7c934..6a26356ce46850b9e14a029e2e6089ed165bc339 100644 (file)
@@ -270,8 +270,8 @@ namespace bbtk
     WxDialog* w = 0;  
     w = new WxDialog( GetThisPointer<WxBlackBox>(),
                      Wx::GetTopWindow(),
-                     std2wx( bbGetInputWinTitle()  
-                             + " - bbtk (c) CREATIS"),
+//                   std2wx( bbGetInputWinTitle() + " - bbtk (c) CREATIS"),
+                     std2wx( ConstructWinTitle() ),
                      wxSize( bbGetInputWinWidth() , 
                              bbGetInputWinHeight() ) );
     w->Show(false);
@@ -292,8 +292,8 @@ namespace bbtk
     WxFrame* w = 0;  
     w = new WxFrame( GetThisPointer<WxBlackBox>(),
                     Wx::GetTopWindow(),
-                    std2wx( bbGetInputWinTitle()  
-                            + " - bbtk (c) CREATIS"),
+//                  std2wx( bbGetInputWinTitle() + " - bbtk (c) CREATIS"),
+                    std2wx( ConstructWinTitle() ),
                     wxSize( bbGetInputWinWidth() , 
                             bbGetInputWinHeight() ) );
     w->Show();
@@ -356,6 +356,27 @@ namespace bbtk
 
   }
   //==================================================================    
+  
+  //==================================================================    
+  void WxBlackBox::PutWinTitle()
+  {
+       if ( ! bbIsOutputWidgetConnected() )
+    {
+               wxTopLevelWindow* wParent = (wxTopLevelWindow*)( bbGetOutputWidget()->GetParent() );
+               wParent->SetTitle( std2wx( ConstructWinTitle() ) );
+       } // if
+  }
+  //==================================================================    
+
+  //==================================================================    
+  std::string WxBlackBox::ConstructWinTitle()
+  {
+       std::string title( bbGetInputWinTitle() + " - bbtk (c) CREATIS");
+       return title;
+  }
+  //==================================================================    
+
+
 
 }//namespace bbtk