xtd 0.2.0
Loading...
Searching...
No Matches

◆ dialog_result() [2/2]

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

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

Parameters
dialog_resultOne of the xtd::forms::dialog_result values. The default value is xtd::forms::dialog_result::none.
Remarks
When a form is shown as a dialog box using the xtd::forms::form::show_dialog method and one of its buttons is clicked, the button's xtd::forms::dialog_result value is assigned to the form's xtd::forms::dialog_result property.

Implements xtd::forms::ibutton_control.