]> Creatis software - bbtk.git/commitdiff
#3191 BBTK Feature New Normal - HtmlWindow Box
authorEduardo DAVILA <davila@localhost.localdomain>
Thu, 26 Apr 2018 10:33:45 +0000 (12:33 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Thu, 26 Apr 2018 10:33:45 +0000 (12:33 +0200)
packages/wx/src/bbwxHtmlWindow.cxx

index befc400be91821f0417cc1ced111c57ecd2d6a30..0298362d4f388f729f625c737c0d8f393fc5edb4 100644 (file)
@@ -18,19 +18,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(HtmlWindow,bbtk::WxBlackBox);
 
 void HtmlWindow::Process()
 {
-/*
-   std::string msg;
-    if (bbGetInputTitle()!="")
-      {
-       msg = bbGetInputTitle()+": " + bbGetInputIn();
-      }
-    else
-      {
-       msg = bbGetInputIn();
-      }
-   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); 
-  */
-
        wxHtmlWindow* html = (wxHtmlWindow*)bbGetOutputWidget();
        html->LoadPage( bbtk::std2wx( bbGetInputFileName() ));
 
@@ -40,9 +27,7 @@ void HtmlWindow::Process()
 //===== 
 void HtmlWindow::CreateWidget(wxWindow* parent)
 {
-
-//   bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
-   bbSetOutputWidget( new wxHtmlWindow(parent, -1, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_NEVER) );
+   bbSetOutputWidget( new wxHtmlWindow(parent, -1, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_AUTO) );
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)