xtd - Reference Guide 0.2.0
Go to the documentation of this file.
1 #pragma once
5 #include "application.h"
6 #include "message_box.h"
10 namespace xtd {
12  namespace forms {
20  public:
34  private:
36  #if defined(TRACE)
38  message_dialog dialog;
39  dialog.buttons(buttons);
40  dialog.default_button(default_button);
41  dialog.display_help_button(display_help_button);
42  dialog.icon(icon);
43  dialog.message(text);
44  dialog.options(options);
45  dialog.text(caption);
46  return owner ? dialog.show_sheet_dialog(*owner) : dialog.show_dialog();
47  #else
49  #endif
50  }
51  };
52  }
53 }
The first button on the message box is the default button.
Specifies constants defining the default button on a message_box.
Definition: message_dialog_default_button.h:18
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:39
Nothing is returned from the dialog box. This means that the modal dialog continues running...
static xtd::ustring product_name()
Gets the product name associated with this application.
Contains xtd::forms::application class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition: static.h:38
Specifies constants defining which information to display.
Definition: message_dialog_icon.h:18
xtd::forms::dialog_result show_sheet_dialog(const iwin32_window &owner)
Runs message dialog box.
xtd::forms::message_dialog_icon icon() const
Gets icon to display in the message dialog.
Definition: message_dialog.h:96
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies options on a message_box.
Definition: message_dialog_options.h:20
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Displays a dialog box and write trace.
Definition: trace_message_box.h:19
Specifies constants defining which buttons to display on a message_box.
Definition: message_dialog_buttons.h:18
xtd::forms::message_dialog_buttons buttons() const
Gets buttons to display in the message dialog.
Definition: message_dialog.h:48
static dialog_result show(const iwin32_window &owner, const xtd::ustring &text)
Displays a message box in front of the specified window and write trace with specified text...
Definition: trace_message_box.h:31
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:19
The message box contains an OK button.
The message box contains a symbol consisting of white X in a circle with a red background.
xtd::ustring text() const
Gets the dialog caption text.
Definition: message_dialog.h:129
xtd::forms::message_dialog_options options() const
Gets options will be used for the message box.
Definition: message_dialog.h:107
Displays a message window, also known as a dialog box, which presents a message to the user...
Definition: message_dialog.h:34
xtd::forms::message_dialog_default_button default_button() const
Gets default button for the message dialog.
Definition: message_dialog.h:59
Provides a collection of button objects for use by a Windows Forms application.
Definition: buttons.h:21
The message box contain no symbols.
bool display_help_button() const
Gets a value indicate if help button is shown.
Definition: message_dialog.h:70
xtd::ustring message() const
Gets the text message.
Definition: message_dialog.h:118
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::message_box dialog.
static xtd::forms::dialog_result show(const xtd::ustring &text)
Displays a message box and write trace with specified text.
Definition: trace_message_box.h:26
xtd::forms::dialog_result show_dialog()
Runs message dialog box.
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition: debug.h:352
The xtd::forms::status_bar_panel displays text in the standard font.