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);
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();
}
//==================================================================
+
+ //==================================================================
+ 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