Hi

I've been trying to implement a treeview within a tab and find that the
vertical scrollbar doesn't work, neither does scrolling with the mouse wheel.

I'm using wt-3.3.1-rc1.tar.gz (downloaded on 23/09/13) on Ubuntu 12.04,
Firefox browser.

A fragment of my code is

  WContainerWidget *tabcontainer = new WContainerWidget();
  gridsub->addWidget(tabcontainer, 0, 1);
  WTabWidget *tabW = new WTabWidget(tabcontainer);
  WContainerWidget *offcontainer = new WContainerWidget();
  tabW->addTab(offcontainer, "Tree View", Wt::WTabWidget::PreLoading);
  tv= new WTreeView(offcontainer);
  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);

The treeview works fine when not in a tab.

I've also tried to set a WGridLayout inside the tab and used setOverflow
(all possible settings) on offcontainer, all with no effect.

Any help gratefully received.

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