Example #1
0
WtApplication::WtApplication(const WEnvironment& env) : WApplication(env) {
	msg("<b>WELCOME GREAT DEVELOPERS</b>");
	msg("");

	WStackedWidget *sw = new WStackedWidget();
	WMenu *mn = new WMenu(sw, Horizontal, 0);
	mn->setRenderAsList(true); mn->setInternalPathEnabled();

	mn->addItem("Home Page", deferCreate(boost::bind(&WtApplication::menuHome, this)))->setPathComponent("Home");
	mn->addItem("About ME", deferCreate(boost::bind(&WtApplication::menuAbout, this)))->setPathComponent("About");
       mn->addItem("GREATDEVELOPERS", deferCreate(boost::bind(&WtApplication::menuGREATDEVELOPERS, this)))->setPathComponent("GREATDEVELOPERS ");

	root()->addWidget(mn);
	root()->addWidget(sw);
	
	//msg("<p></p>Thanks for visit.");
}
Example #2
0
/** Wt Session Start */
WtApplication::WtApplication(const WEnvironment& env) : WApplication(env) {
	msg("");
useStyleSheet("css/style.css");
	msg("");

	WStackedWidget *sw = new WStackedWidget();
	WMenu *mn = new WMenu(sw, Horizontal, 0);
	mn->setRenderAsList(true); mn->setInternalPathEnabled();

	mn->addItem("Home Page", deferCreate(boost::bind(&WtApplication::menuHome, this)))->setPathComponent("Home");
	mn->addItem("RHYMES", deferCreate(boost::bind(&WtApplication::menuAbout, this)))->setPathComponent("About");

	root()->addWidget(mn);
	root()->addWidget(sw);
	
	msg("<p>&nbsp;</p>THANKS FOR VISIT.");
}