Wt 3.1.10
Public Member Functions
Wt::WVBoxLayout Class Reference

A layout manager which arranges widgets vertically. More...

#include <Wt/WVBoxLayout>

Inheritance diagram for Wt::WVBoxLayout:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WVBoxLayout (WWidget *parent=0)
 Create a new vertical box layout.

Detailed Description

A layout manager which arranges widgets vertically.

This convenience class creates a vertical box layout, laying contained widgets out from top to bottom.

See WBoxLayout for available member methods and more information.

Usage example:

 Wt::WContainerWidget *w = new Wt::WContainerWidget(this);
 w->resize(WLength::Auto, 600);

 Wt::WVBoxLayout *layout = new Wt::WVBoxLayout();
 layout->addWidget(new Wt::WText("One"));
 layout->addWidget(new Wt::WText("Two"));
 layout->addWidget(new Wt::WText("Three"));
 layout->addWidget(new Wt::WText("Four"));

 w->setLayout(layout);
Note:
First consider if you can achieve your layout using CSS !
See also:
WHBoxLayout

Constructor & Destructor Documentation

Wt::WVBoxLayout::WVBoxLayout ( WWidget parent = 0)

Create a new vertical box layout.

Use parent=0 to created a layout manager that can be nested inside other layout managers.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Mon Nov 14 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4