Wt examples  3.2.2
Functions
FormExample.C File Reference
#include "FormExample.h"
#include "Form.h"
#include <Wt/WApplication>
#include <Wt/WText>
#include <Wt/WStringUtil>

Go to the source code of this file.

Functions

WApplicationcreateApplication (const WEnvironment &env)
int main (int argc, char **argv)

Function Documentation

WApplication* createApplication ( const WEnvironment env)

Definition at line 68 of file FormExample.C.

{
WApplication *app = new WApplication(env);
app->messageResourceBundle().use(WApplication::appRoot() + "form-example");
app->setTitle("Form example");
app->root()->addWidget(new FormExample());
langStyle.font().setSize(WFont::Smaller);
langStyle.setCursor(PointingHandCursor);
langStyle.setTextDecoration(WCssDecorationStyle::Underline);
app->styleSheet().addRule(".lang", langStyle);
langStyle.setCursor(ArrowCursor);
langStyle.font().setWeight(WFont::Bold);
app->styleSheet().addRule(".langcurrent", langStyle);
return app;
}
int main ( int  argc,
char **  argv 
)

Definition at line 90 of file FormExample.C.

{
return WRun(argc, argv, &createApplication);
}

Generated on Mon Oct 29 2012 for the C++ Web Toolkit (Wt) by doxygen 1.8.1.2