xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <ibutton_control.h>
Allows a control to act like a button on a form.
Inherits xtd::interface.
Inherited by xtd::forms::button.
Public Member Functions | |
virtual forms::dialog_result | dialog_result () const =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. | |
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 virtual |
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 DialogResult values. |
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.