⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (573 Bytes)
Bug #767
ยป test_tooltip.cpp
Anonymous, 03/22/2011 10:41 AM
#include
<Wt/WApplication>
#include
<Wt/WLabel>
#include
<Wt/WPopupMenu>
#include
<Wt/WContainerWidget>
using
namespace
std
;
namespace
{
class
TestToolTip
:
public
Wt
::
WApplication
{
public:
TestToolTip
(
const
Wt
::
WEnvironment
&
env
)
:
Wt
::
WApplication
(
env
)
{
Wt
::
WLabel
*
w
=
new
Wt
::
WLabel
(
"hover to show tip"
,
root
()
);
w
->
resize
(
500
,
500
);
std
::
string
s
;
for
(
int
i
=
0
;
i
<
50
;
++
i
)
s
+=
boost
::
lexical_cast
<
std
::
string
>
(
i
)
+
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\n
"
;
w
->
setToolTip
(
s
);
}
};
}
(1-1/1)
Loading...