]> Creatis software - creaWT.git/blobdiff - wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx~
#2498 creaWt Feature New Normal wt-version kernel
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutTab.cxx~
index e0d5947f286bbd8c7d8a26918637400cf277092f..a0437165ed6193666ccf3072af85e6b5ea73146b 100644 (file)
@@ -28,10 +28,10 @@ void LayoutTab::CreateWidget(Wt::WContainerWidget* parent)
        
        
        Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
-       Wt::WTabWidget* layout = new Wt::WTabWidget(w);
+       Wt::WTabWidget* layout = new Wt::WTabWidget();
        Wt::WContainerWidget *cw;
 
-       if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));}
+  if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));}
        if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel2()));}
        if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel3()));}
        if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel4()));}
@@ -41,7 +41,7 @@ void LayoutTab::CreateWidget(Wt::WContainerWidget* parent)
        if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel8()));}
        if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel9()));}
 
-       
+       w->setLayout(layout);
     bbSetOutputWidget( w );