Support #7521
closedExample: Dialogs
0%
Files
Updated by ZAITAO HUANG over 4 years ago
the dialog non-modal,
I had set modal,
dialog->setModal(true);
and dialog->exec();
Updated by ZAITAO HUANG over 4 years ago
the next example: Message box It's also the case.
WMessageBox, non-modal.
I use Edge and Chrome. Both browsers have the same result
Updated by Roel Standaert over 4 years ago
Hey, I think you're just missing the resources.
Use the --resources-dir=/path/to/wt/resources
argument to indicate to your program where the resources are. Of course, replace /path/to/wt/resources
with where the resources folder of Wt actually is.
Note: the widget gallery also uses the Bootstrap theme, so even if you use --resources-dir
it won't look the same unless you actually enable to Bootstrap theme:
auto theme = std::make_shared<Wt::WBootstrapTheme>();
theme->setVersion(Wt::BootstrapVersion::v3);
app->setTheme(theme);
Updated by ZAITAO HUANG over 4 years ago
Roel Standaert. thank you.
I dont know how use the Bootstrap,
this is my first time to code web application.
I have leaned to use CSS and XML resource before,
now,I dont know how to config and use Bootstrap.
or, could you tell the link to Wt document on how to use?
Updated by ZAITAO HUANG over 4 years ago
I have added these code to the application,
auto theme = std::make_sharedWt::WBootstrapTheme();
theme->setVersion(Wt::BootstrapVersion::v3);
app->setTheme(theme);
but, still the case.
Updated by ZAITAO HUANG over 4 years ago
- File myself_ok.jpg myself_ok.jpg added
Roel Standaert. thank you.
I found the reason according to Example: \lib\Wt\examples\chart3D
Like you said, I have no path to configure resources
Updated by Roel Standaert over 4 years ago
- Status changed from New to Closed
Glad to see you figured it out.
Updated by ZAITAO HUANG over 4 years ago
yeh. I'm so happy, thanks for your time.
God bless you. ///(v)\\\