xtd 0.2.0
Loading...
Searching...
No Matches
message_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "dialog_result.h"
7#include "iwin32_window.h"
10#include "message_box_icon.h"
11#include "message_box_options.h"
12#include <xtd/static>
13
15namespace xtd {
17 namespace forms {
19 class control;
21
41 public:
43
48 static dialog_result show(const iwin32_window& owner);
53 static dialog_result show(const iwin32_window& owner, const xtd::string& text);
59 static dialog_result show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption);
66 static dialog_result show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, message_box_buttons buttons);
74 static dialog_result show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, message_box_buttons buttons, message_box_icon icon);
83 static dialog_result show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button);
104 static dialog_result show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button);
105
112 static dialog_result show(const xtd::string& text);
117 static dialog_result show(const xtd::string& text, const xtd::string& caption);
157 static dialog_result show(const xtd::string& text, const xtd::string& caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button);
159
160 private:
161 static dialog_result show_message_dialog(const iwin32_window* owner, const xtd::string& text = xtd::string::empty_string, const xtd::string& caption = xtd::string::empty_string, message_box_buttons buttons = message_box_buttons::ok, message_box_icon icon = message_box_icon::none, message_box_default_button default_button = message_box_default_button::button1, message_box_options options = static_cast<message_box_options>(0), bool display_help_button = false);
162 };
163 }
164}
Represents text as a sequence of character units.
Definition basic_string.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Provides a collection of button objects for use by a Windows Forms application.
Definition buttons.h:24
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Displays a message window, also known as a dialog box, which presents a message to the user....
Definition message_box.h:40
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button)
Displays a message box in front of the specified window with the specified text, caption,...
static dialog_result show(const iwin32_window &owner)
Displays a message box in front of the specified window.
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, message_box_buttons buttons)
Displays a message box in front of the specified window with the specified text, caption,...
static dialog_result show(const xtd::string &text)
Displays a message box with specified text.
static dialog_result show(const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button)
Displays a message box with the specified text, caption, buttons, icon, and default button.
static dialog_result show(const iwin32_window &owner, const xtd::string &text)
Displays a message box in front of the specified window with specified text.
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon)
Displays a message box in front of the specified window with the specified text, caption,...
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button)
Displays a message box in front of the specified window with the specified text, caption,...
static dialog_result show(const xtd::string &text, const xtd::string &caption)
Displays a message box with specified text and caption.
static dialog_result show()
Displays a message box.
static dialog_result show(const xtd::string &text, const xtd::string &caption, message_box_buttons buttons)
Displays a message box with the specified text, caption, and buttons.
static dialog_result show(const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon)
Displays a message box with the specified text, caption, buttons, and icon.
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption)
Displays a message box in front of the specified window with specified text and caption.
static dialog_result show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options)
Displays a message box in front of the specified window with the specified text, caption,...
static dialog_result show(const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button)
Displays a message box with the specified text, caption, buttons, icon, default button,...
static dialog_result show(const xtd::string &text, const xtd::string &caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options)
Displays a message box with the specified text, caption, buttons, icon, default button,...
Contains xtd::forms::dialog_result enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
@ control
The left or right CTRL modifier key.
message_dialog_icon
Specifies constants defining which information to display.
Definition message_dialog_icon.h:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:43
message_dialog_default_button
Specifies constants defining the default button on a message_box.
Definition message_dialog_default_button.h:22
message_dialog_options
Specifies options on a message_box.
Definition message_dialog_options.h:24
message_dialog_buttons
Specifies constants defining which buttons to display on a message_box.
Definition message_dialog_buttons.h:22
Contains xtd::forms::iwin32_window interface.
Contains xtd::forms::message_box_buttons enum class.
Contains xtd::forms::message_box_default_button enum class.
Contains xtd::forms::message_box_icon enum class.
Contains xtd::forms::message_box_options enum class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10