xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
message_dialog_buttons.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace 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}
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
message_dialog_buttons
Specifies constants defining which buttons to display on a message_box.
Definition: message_dialog_buttons.h:18
@ ok
The dialog box return value is OK (usually sent from a button labeled OK).
@ yes_no
The message box contains Yes and No buttons.
@ ok
The message box contains an OK button.
@ yes_no_cancel
The message box contains Yes, No, and Cancel buttons.
@ retry_cancel
The message box contains Retry and Cancel buttons.
@ ok_cancel
The message box contains OK and Cancel buttons.
@ abort_retry_ignore
&brief The message box contains Abort, Retry, and Ignore buttons
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.