From 77d3a1538d87248a3f09105b30af8b7f0ecbfba6 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 26 Apr 2018 12:33:45 +0200 Subject: [PATCH] #3191 BBTK Feature New Normal - HtmlWindow Box --- packages/wx/src/bbwxHtmlWindow.cxx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/wx/src/bbwxHtmlWindow.cxx b/packages/wx/src/bbwxHtmlWindow.cxx index befc400..0298362 100644 --- a/packages/wx/src/bbwxHtmlWindow.cxx +++ b/packages/wx/src/bbwxHtmlWindow.cxx @@ -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) -- 2.44.0