#include #include #include #include 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 ); } }; }