Hi koen

OK, I've revised the code to

  Wt::WTabWidget *tabW = new Wt::WTabWidget();
  gridsub->addWidget(tabW, 0, 1);
  WContainerWidget *offcontainer = new WContainerWidget();
  Wt::WGridLayout *gridtab1 = new Wt::WGridLayout();
  offcontainer->setLayout(gridtab1);
  gridtab1->setRowStretch(0, 1);
  gridtab1->setColumnStretch(0, 1);
  tv = new WTreeView();
  gridtab1->addWidget(tv,0,0);
  tabW->addTab(offcontainer, "Tree View", Wt::WTabWidget::PreLoading);
  tabW->addTab(new Wt::WTextArea("Some text A"),
           "Preload", Wt::WTabWidget::PreLoading);
  tabW->addTab(new Wt::WTextArea("Some text B"),
           "Style", Wt::WTabWidget::PreLoading)->setStyleClass("trhead");
  gridsub->setColumnStretch(1, 1);

This works well, many thanks for the advice.

Regards

Nigel



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to