xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
message_dialog_buttons.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
20  ok = 0,
22  ok_cancel = 1,
26  yes_no_cancel = 3,
28  yes_no = 4,
30  retry_cancel = 5
31  };
32 
34  inline std::ostream& operator<<(std::ostream& os, message_dialog_buttons value) {return os << to_string(value, {{message_dialog_buttons::ok, "ok"}, {message_dialog_buttons::ok_cancel, "ok_cancel"}, {message_dialog_buttons::abort_retry_ignore, "abort_retry_ignore"}, {message_dialog_buttons::yes_no_cancel, "yes_no_cancel"}, {message_dialog_buttons::yes_no, "yes_no"}, {message_dialog_buttons::retry_cancel, "retry_cancel"}});}
35  inline std::wostream& operator<<(std::wostream& os, message_dialog_buttons value) {return os << to_string(value, {{message_dialog_buttons::ok, L"ok"}, {message_dialog_buttons::ok_cancel, L"ok_cancel"}, {message_dialog_buttons::abort_retry_ignore, L"abort_retry_ignore"}, {message_dialog_buttons::yes_no_cancel, L"yes_no_cancel"}, {message_dialog_buttons::yes_no, L"yes_no"}, {message_dialog_buttons::retry_cancel, L"retry_cancel"}});}
37  }
38 }
The message box contains OK and Cancel buttons.
&brief The message box contains Abort, Retry, and Ignore buttons
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
message_dialog_buttons
Specifies constants defining which buttons to display on a message_box.
Definition: message_dialog_buttons.h:18
The message box contains an OK button.
Contains xtd::ustring class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The message box contains Yes, No, and Cancel buttons.
The message box contains Yes and No buttons.
The message box contains Retry and Cancel buttons.
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37