Allows a control to act like a button on a form.
Public Properties | |
virtual forms::dialog_result | dialog_result () const noexcept=0 |
Gets the value returned to the parent form when the button is clicked. | |
virtual control & | dialog_result (forms::dialog_result dialog_result)=0 |
Sets the value returned to the parent form when the button is clicked. | |
Public Methods | |
virtual void | notify_default (bool value)=0 |
Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly. | |
virtual void | perform_click ()=0 |
Generates a click event for the control. | |
|
pure 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.
dialog_result | 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.