xtd 0.2.0
message_box.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include "dialog_result.hpp"
7#include "iwin32_window.hpp"
10#include "message_box_icon.hpp"
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);
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
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}
Provides a collection of button objects for use by a Windows Forms application.
Definition buttons.hpp:24
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Displays a message window, also known as a dialog box, which presents a message to the user....
Definition message_box.hpp: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.
Contains forms_export_ keyword.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
message_dialog_buttons message_box_buttons
Specifies constants defining which buttons to display on a message_box.
Definition message_box_buttons.hpp:22
message_dialog_default_button message_box_default_button
Specifies constants defining the default button on a message_box.
Definition message_box_default_button.hpp:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.hpp:43
message_dialog_icon message_box_icon
Specifies constants defining which information to display.
Definition message_box_icon.hpp:22
message_dialog_options message_box_options
Specifies options on a message_box.
Definition message_box_options.hpp:24
@ none
The message box contain no symbols.
Definition message_dialog_icon.hpp:24
@ button1
The first button on the message box is the default button.
Definition message_dialog_default_button.hpp:24
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
Definition status_bar_panel_style.hpp:25
@ ok
The message box contains an OK button.
Definition message_dialog_buttons.hpp:24
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 texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8