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