Wt  3.3.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
Wt::Ext::Button Class Reference

A button. More...

#include <Wt/Ext/Button>

Inheritance diagram for Wt::Ext::Button:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Button (WContainerWidget *parent=0)
 Create a push button with empty label.
 Button (const WString &text, WContainerWidget *parent=0)
 Create a push button with given label.
 ~Button ()
 Delete a button.
void setDefault (bool how)
 Configure as the default button.
bool isDefault () const
 Return if is the default button.
JSignalclicked ()
 Alias for the activated() signal.

Detailed Description

A button.

A button with a label and/or icon, which may be standalone, or be added to a ToolBar (see ToolBar::addButton()) or to a Dialog (see Dialog::addButton()).

The API is similar to the WPushButton API, with the following additional features:

ExtButton-1.png
Standalone button
ExtButton-1a.png
Standalone button hover effect
ExtButton-2.png
Button in tool bar
ExtButton-3.png
Button in tool bar with icon
ExtButton-4.png
Button in tool bar with icon and menu
ExtButton-5.png
Button in tool bar hover effect
ExtButton-6.png
Toggled button in tool bar

Member Function Documentation

Alias for the activated() signal.

This signal is added for increased API compatibility with WPushButton.

Return if is the default button.

See also:
setDefault(bool)
void Wt::Ext::Button::setDefault ( bool  how)

Configure as the default button.

This only applies for buttons that have been added to a dialog using Dialog::addButton().

The default button will be activated when the user presses the Enter (or Return) key in a dialog.

The default button may be rendered with more emphasis (?).

See also:
isDefault()
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Mar 22 2016 for the C++ Web Toolkit (Wt) by doxygen 1.7.6.1