xtd 0.2.0
Loading...
Searching...
No Matches
message_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "component.hpp"
8#include "dialog_result.hpp"
10#include "iwin32_window.hpp"
15
17struct __xtd_forms_message_dialog_closed_caller__;
19
21namespace xtd {
23 namespace forms {
42 class forms_export_ message_dialog final : public component {
43 struct data;
44
45 public:
47
52
54
63
66 xtd::forms::message_dialog_default_button default_button() const noexcept;
70 message_dialog& default_button(xtd::forms::message_dialog_default_button default_button);
71
74 bool display_help_button() const noexcept;
78 message_dialog& display_help_button(bool display_help_button);
79
83
91
94 xtd::forms::message_dialog_icon icon() const noexcept;
99
102 xtd::forms::message_dialog_options options() const noexcept;
107
110 xtd::string message() const noexcept;
115
118 xtd::string text() const noexcept;
122 message_dialog& text(const xtd::string& text);
124
126
129 void reset();
130
132 xtd::forms::dialog_result show_dialog();
134 xtd::forms::dialog_result show_dialog(const iwin32_window& owner);
136 void show_sheet(const iwin32_window& owner);
138 xtd::forms::dialog_result show_sheet_dialog(const iwin32_window& owner);
140
142
147
152
153 private:
155 friend struct ::__xtd_forms_message_dialog_closed_caller__;
157
161 virtual void on_dialog_closed(const dialog_closed_event_args& e);
162
163 xtd::sptr<data> data_;
164 };
165 }
166}
Represents an event.
Definition event.hpp:21
Provides a collection of button objects for use by a Windows Forms application.
Definition buttons.hpp:24
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:25
Provides data for a dialog closed event.
Definition dialog_closed_event_args.hpp:22
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_dialog.hpp:42
message_dialog()
Initializes a new instance of the message_dialog class.
xtd::forms::message_dialog_buttons buttons() const noexcept
Gets buttons to display in the message dialog.
Implements a Windows message.
Definition message.hpp:28
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::dialog_closed_event_handler dialog.
Contains xtd::forms::dialog_result enum class.
delegate< void(object &sender, const dialog_closed_event_args &e)> dialog_closed_event_handler
Provides handler for a dialog closed event.
Definition dialog_closed_event_handler.hpp:24
delegate< void(object &sender, help_event_args &e)> help_event_handler
Represents the method that will handle the xtd::forms::control::help_requested event of a control.
Definition help_event_handler.hpp:25
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
message_dialog_icon
Specifies constants defining which information to display.
Definition message_dialog_icon.hpp:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.hpp:43
message_dialog_default_button
Specifies constants defining the default button on a message_box.
Definition message_dialog_default_button.hpp:22
control_appearance
Specifies the appearance of a control.
Definition control_appearance.hpp:21
message_dialog_options
Specifies options on a message_box.
Definition message_dialog_options.hpp:24
message_dialog_buttons
Specifies constants defining which buttons to display on a message_box.
Definition message_dialog_buttons.hpp:22
Contains xtd::forms::help_event_handler event handler.
Contains xtd::forms::iwin32_window interface.
Contains xtd::forms::message_dialog_buttons enum class.
Contains xtd::forms::message_dialog_default_button enum class.
Contains xtd::forms::message_dialog_icon enum class.
Contains xtd::forms::message_dialog_options enum class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10