Functions

/tmp/buildd/witty-3.1.2/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.

{
  WApplication *app = new WApplication(env);
  app->messageResourceBundle().use("form-example");
  app->setTitle("Form example");

  app->root()->addWidget(new FormExample());

  WCssDecorationStyle langStyle;
  langStyle.font().setSize(WFont::Smaller);
  langStyle.setCursor(PointingHandCursor);
  langStyle.setForegroundColor(blue);
  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 Nov 29 2010 08:03:14 for Wt by doxygen 1.7.1