X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtLayoutTab.cxx~;h=a0437165ed6193666ccf3072af85e6b5ea73146b;hb=e19fa7d7d6d8da78d560d0dbc06efb4bb85e41e5;hp=e0d5947f286bbd8c7d8a26918637400cf277092f;hpb=9d4bfc78701cb1f302e09b0cd9595e006cd4b5fb;p=creaWT.git diff --git a/wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx~ b/wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx~ index e0d5947..a043716 100644 --- a/wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx~ +++ b/wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx~ @@ -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 );