Project

General

Profile

WT 4.0 , WScrollArea

Added by Patrick ottavi about 7 years ago

hello,

I have a project that worked with version 3.3.8, in ISAPI mode with Visual 2017.

I try to move the project with version 4.0.0.

after a few troubled transformation everything works,

except that I can not find a class I used to handle the scrolling of my main page :WScrollArea

app->root()->setLayout(std::unique_ptr<Wt::WHBoxLayout>(layout));
layout->setPreferredImplementation(Wt::LayoutImplementation::JavaScript);
layout->setContentsMargins(0, 0, 0, 0);

    /*Wt::WScrollArea* scroll = new Wt::WScrollArea(app->root()); ??? missing in wt 4.0
    scroll->setScrollBarPolicy(Wt::WScrollArea::ScrollBarAsNeeded);
    layout->addWidget(scroll);*/

    app->m_pApp = new TennisClubApp();
    //scroll->setWidget(app->m_pApp);
    layout->addWidget(std::unique_ptr<TennisClubApp>(app->m_pApp));
    app->setTitle(app->m_pApp->GetApplicationName());

how I can do the same with wt 4.0. 0?

Thanks in advance.

Patrick Ottavi


Replies (2)

RE: WT 4.0 , WScrollArea - Added by Roel Standaert about 7 years ago

WScrollArea was removed, because that usage can be done with WContainerWidget, with setOverflow(Wt::Overflow::Auto).

Regards,

Roel

RE: WT 4.0 , WScrollArea - Added by Patrick ottavi about 7 years ago

thank you for your reply

Regards,

Patrick

    (1-2/2)