----------------------------------------
Thomas Suckow <thomas.suckow@...> writes:

> 
> 
>     Is this correct or is there a better approach to this?
>     Nope.
>    
Yep.http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WStackedWidget.html
>     "This is a container widget which at all times has only one item
>     visible."
>     I would try just using a WContainerWidget instead of a
>     WStackedWidget.
>     -
>     Thomas
> 
> 
> ----------------------------------------------------------------------------
Yes, I see, that's much simpler.  I did

    Wt::WContainerWidget *wContainerWidget = new Wt::WContainerWidget(root());
    Wt::WText *text1 = new Wt::WText("Should be overlaid");
    Wt::WText *text2 = new Wt::WText("OVERLAY");
    text1->setPositionScheme (Wt::Absolute);
    text2->setPositionScheme (Wt::Absolute);
    wContainerWidget->addWidget (text1);
    wContainerWidget->addWidget (text2);

and it works fine.

Many thanks

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

Reply via email to