/home/koen/project/wt/public-git/wt/examples/form/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.

00069 {
00070   WApplication *app = new WApplication(env);
00071   app->messageResourceBundle().use("form-example");
00072   app->setTitle("Form example");
00073 
00074   app->root()->addWidget(new FormExample());
00075 
00076   WCssDecorationStyle langStyle;
00077   langStyle.font().setSize(WFont::Smaller);
00078   langStyle.setCursor(PointingHandCursor);
00079   langStyle.setForegroundColor(blue);
00080   langStyle.setTextDecoration(WCssDecorationStyle::Underline);
00081   app->styleSheet().addRule(".lang", langStyle);
00082 
00083   langStyle.setCursor(ArrowCursor);
00084   langStyle.font().setWeight(WFont::Bold);
00085   app->styleSheet().addRule(".langcurrent", langStyle);
00086 
00087   return app;
00088 }

int main ( int  argc,
char **  argv 
)

Definition at line 90 of file FormExample.C.

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


Generated on Tue Nov 3 15:34:40 2009 for Wt by doxygen 1.5.6