The following code example demonstrate the use of message_box dialog.
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
controls().push_back_range({button_show_message, label_dialog_result});
text("Message box exemple");
button_show_message.location({10, 10});
button_show_message.text("Message...");
button_show_message.width(100);
button_show_message.click += [&] {
};
label_dialog_result.location({10, 45});
label_dialog_result.width(200);
}
private:
label label_dialog_result;
};
int main() {
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17