Displays a message window and write debug, which presents a debug message to the user.
- Header
#include <xtd/forms/debug_message_dialog>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
| Light |
html dialog_debug_message_box_m.png html dialog_debug_message_box_g.png
|
| Dark |
html dialog_debug_message_box_md.png html dialog_debug_message_box_gd.png
|
- Examples
- The following code example demonstrates the use of debug_message_dialog dialog.
#define DEBUG
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/debug_form>
#include <xtd/forms/debug_message_dialog>
#include <xtd/forms/form>
class form1 :
public form {
public:
form1() {
button_show_debug_message.
location({10, 10});
button_show_debug_message.parent(*this);
button_show_debug_message.text("Error...");
button_show_debug_message.auto_size(true);
button_show_debug_message.click += [&] {
dialog.message("An unknown process error occured.");
dialog.show_sheet_dialog(*this);
};
}
private:
button button_show_debug_message;
};
auto main()->int {
}
- Examples:
- debug_message_dialog.cpp.
|
| | object ()=default |
| | Create a new instance of the ultimate base class object. More...
|
| |
| bool | equals (const object &obj) const noexcept |
| | Determines whether the specified object is equal to the current object. More...
|
| |
| virtual size_t | get_hash_code () const noexcept |
| | Serves as a hash function for a particular type. More...
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance. More...
|
| |
| template<typename object_t > |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| | Creates a shallow copy of the current object. More...
|
| |
| virtual xtd::ustring | to_string () const noexcept |
| | Returns a sxd::ustring that represents the current object. More...
|
| |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| | Determines whether the specified object instances are considered equal. More...
|
| |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| | Determines whether the specified object instances are the same instance. More...
|
| |
| | component () |
| | Initialises a new instance of the component class. More...
|
| |
| virtual bool | can_raise_events () const noexcept |
| | Gets a value indicating whether the component can raise an event. More...
|
| |
| bool | design_mode () const noexcept |
| | Gets a value that indicates whether the component is currently in design mode. More...
|
| |