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
39 public:
41
46 static dialog_result show(const iwin32_window& owner);
51 static dialog_result show(const iwin32_window& owner, const xtd::ustring& text);
57 static dialog_result show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption);
64 static dialog_result show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, message_box_buttons buttons);
72 static dialog_result show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, message_box_buttons buttons, message_box_icon icon);
102 static dialog_result show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button);
103
110 static dialog_result show(const xtd::ustring& text);
115 static dialog_result show(const xtd::ustring& text, const xtd::ustring& caption);
155 static dialog_result show(const xtd::ustring& text, const xtd::ustring& caption, message_box_buttons buttons, message_box_icon icon, message_box_default_button default_button, message_box_options options, bool display_help_button);
157
158 private:
159 static dialog_result show_message_dialog(const iwin32_window* owner, const xtd::ustring& text = "", const xtd::ustring& caption = "", 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);
160 };
161 }
162}
Provides a collection of button objects for use by a Windows Forms application.
Definition buttons.h:22
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:21
Displays a message window, also known as a dialog box, which presents a message to the user....
Definition message_box.h:38
static dialog_result show(const iwin32_window &owner)
Displays a message box in front of the specified window.
static dialog_result show(const xtd::ustring &text, const xtd::ustring &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,...
static dialog_result show()
Displays a message box.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &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 xtd::ustring &text, const xtd::ustring &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 xtd::ustring &text, const xtd::ustring &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 xtd::ustring &text, const xtd::ustring &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::ustring &text, const xtd::ustring &caption)
Displays a message box with specified text and caption.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &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::ustring &text, const xtd::ustring &caption, message_box_buttons buttons)
Displays a message box with the specified text, caption, and buttons.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &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 iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &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::ustring &text, const xtd::ustring &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 xtd::ustring &text)
Displays a message box with specified text.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text)
Displays a message box in front of the specified window with specified text.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &caption, message_box_buttons buttons)
Displays a message box in front of the specified window with the specified text, caption,...
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
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:20
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:41
message_dialog_default_button
Specifies constants defining the default button on a message_box.
Definition message_dialog_default_button.h:20
message_dialog_options
Specifies options on a message_box.
Definition message_dialog_options.h:22
message_dialog_buttons
Specifies constants defining which buttons to display on a message_box.
Definition message_dialog_buttons.h:20
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