Wt
3.2.3
|
A button. More...
#include <Wt/Ext/Button>
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. | |
JSignal & | clicked () |
Alias for the activated() signal. |
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:
JSignal& Wt::Ext::Button::clicked | ( | ) |
Alias for the activated() signal.
This signal is added for increased API compatibility with WPushButton.
bool Wt::Ext::Button::isDefault | ( | ) | const |
Return if is the default button.
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 (?).