Project

General

Profile

Bug #11424 ยป dialog_closable.cpp

Roel Standaert, 03/10/2023 12:33 PM

 
#include <Wt/WApplication.h>
#include <Wt/WDialog.h>

#include <memory>

int main(int argc, char *argv[])
{
return Wt::WRun(argc, argv, [](const Wt::WEnvironment& env) {
auto app = std::make_unique<Wt::WApplication>(env);
auto dialog = app->addChild(std::make_unique<Wt::WDialog>(Wt::utf8("DIALOG")));
dialog->setClosable(false);
dialog->show();
return app;
});
}
    (1-1/1)