Project

General

Profile

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)