Hey Nigel, > 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);
Here you create a structure where the treeview is simply added in a container (offcontainer) which itself is a tab inside a tabwidget which then again is added to a container. Because neither offcontainer or tabwidget is somehow constrained in vertical size, the treeview will not need a scrollbar as it can (and will) grow to the correct size. What you probably want to achieve is that everything is somehow vertically constrained by your grid layout. Then you have to make sure you use a layout manager at each level. Regards, koen ------------------------------------------------------------------------------ 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
