Hi I want to overlay a widget with a WPaintedWidget (with mostly transparent background) and found info on how to do this at http://redmine.emweb.be/boards/2/topics/2954
I followed the tips and code in this but with no success, the painted widget is never shown. I've now produced a simple example of my problem, as follows: Wt::WStackedWidget *wStackedWidget = new Wt::WStackedWidget(root()); Wt::WText *text1 = new Wt::WText("Should be overlaid"); Wt::WText *text2 = new Wt::WText("OVERLAY"); text1->setWidth (Wt::WLength (80.0, Wt::WLength::Pixel)); text1->setHeight (Wt::WLength (80.0, Wt::WLength::Pixel)); text2->setWidth (Wt::WLength (100.0, Wt::WLength::Pixel)); text2->setHeight (Wt::WLength (100.0, Wt::WLength::Pixel)); text1->setPositionScheme (Wt::Absolute); text2->setPositionScheme (Wt::Absolute); root()->setPositionScheme (Wt::Absolute); wStackedWidget->setPositionScheme (Wt::Absolute); wStackedWidget->addWidget (text1); wStackedWidget->addWidget (text2); wStackedWidget->setCurrentIndex(0); //display text1 text2->show(); //should display text2 on top of text1 but text2 never appears. Is this correct or is there a better approach to this? I'm using wt-3.3.1.tar.gz on Kubuntu 12.04, firefox browser. Regards Nigel ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest