xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.

§ dialog_result() [2/2]

control& xtd::forms::button::dialog_result ( forms::dialog_result  dialog_result)

Sets the value returned to the parent form when the button is clicked.

dialog_resultOne of the DialogResult values.
When a form is shown as a dialog box using the show_dialog method and one of its buttons is clicked, the button's dialog_result value is assigned to the form's dialog_result property.

Implements xtd::forms::ibutton_control.