Allows a control to act like a button on a form.
Public Properties | |
| virtual auto | dialog_result () const noexcept -> xtd::forms::dialog_result=0 |
| Gets the value returned to the parent form when the button is clicked. | |
| virtual auto | dialog_result (xtd::forms::dialog_result value) -> xtd::forms::control &=0 |
| Sets the value returned to the parent form when the button is clicked. | |
Public Methods | |
| virtual auto | notify_default (bool value) -> void=0 |
| Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly. | |
| virtual auto | perform_click () -> void=0 |
| Generates a click event for the control. | |
|
nodiscardpure virtualnoexcept |
Gets the value returned to the parent form when the button is clicked.
Implemented in xtd::forms::button.
|
pure virtual |
Sets the value returned to the parent form when the button is clicked.
| value | One of the xtd::forms::dialog_result values. The default value is xtd::forms::dialog_result::none. |
Implemented in xtd::forms::button.
|
pure virtual |
Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly.
| value | true if the control should behave as a default button; otherwise false. |
Implemented in xtd::forms::button.
|
pure virtual |
Generates a click event for the control.
Implemented in xtd::forms::button.