demonstrates the use of xtd::forms::form container as dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class dialog : public form {
public:
dialog() {
accept_button(ok_button);
client_size({195, 75});
minimize_box(false);
text("Dialog");
ok_button.dialog_result(dialog_result::ok);
ok_button.location({60, 40});
ok_button.parent(*this);
}
public:
button ok_button;
};
auto main() -> int {
form form;
form.text("Dialog example");
button button;
button.location({10, 10});
dialog().show_dialog(form);
};
application::run(form);
}
static xtd::string ok()
Gets a system-defined text that has a string value of "&OK". This field is constant.
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25