⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (946 Bytes)
Bug #3627
ยป test_20141015a_dialog_tooltip.C
Bruce Toll
, 10/15/2014 09:11 PM
#include
<Wt/WApplication>
#include
<Wt/WEnvironment>
#include
<Wt/WContainerWidget>
#include
<Wt/WMessageBox>
#include
<Wt/WText>
#include
<Wt/WBootstrapTheme>
using
namespace
Wt
;
class
TestApplication
:
public
WApplication
{
public:
TestApplication
(
const
WEnvironment
&
env
);
~
TestApplication
()
{
delete
theme
();
}
};
TestApplication
::
TestApplication
(
const
WEnvironment
&
env
)
:
WApplication
(
env
)
{
setTitle
(
"Test XHTML Tooltip in WMessageBox"
);
setTheme
(
new
WBootstrapTheme
());
auto
message_box
=
new
WMessageBox
(
"Text XHTML Tooltip in WMessageBox"
,
"This text should have an XHTML Tooltip!"
,
NoIcon
,
Ok
);
message_box
->
textWidget
()
->
setToolTip
(
"<b>A bold tooltip</b>"
,
XHTMLText
);
message_box
->
buttonClicked
().
connect
(
std
::
bind
([
=
]
{
delete
message_box
;
}));
message_box
->
show
();
}
int
main
(
int
argc
,
char
**
argv
)
{
return
WRun
(
argc
,
argv
,
[](
const
WEnvironment
&
env
)
{
return
new
TestApplication
(
env
);});
}
(1-1/1)
Loading...