Displays a message window and write debug, which presents a debug message to the user.
- Header
#include <xtd/forms/trace_message_dialog>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
| Light |
|
|
|
| Dark |
|
|
|
- Note
- If you define
#define DEBUG above your includes, debug mode will still be active even if NDEBUG is defined.
- Note
- If you define
#define TRACE above your includes, trace mode will still be active even if NTRACE is defined.
- Examples
- The following code example demonstrates the use of trace_message_dialog dialog.
#define TRACE 1
#include <xtd/xtd>
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 +=
delegate_ {
dialog.
message(
"An unknown process error occured.");
dialog.show_sheet_dialog(*this);
};
}
private:
button button_show_debug_message;
};
auto main() -> int {
auto tf = trace_form {};
application::run(form1 {});
}
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:924
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25
|
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| |
| virtual bool | equals (const object &obj) const noexcept |
| | Determines whether the specified object is equal to the current object.
|
| |
| virtual xtd::size | get_hash_code () const noexcept |
| | Serves as a hash function for a particular type.
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance.
|
| |
| template<class object_t> |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| | Creates a shallow copy of the current object.
|
| |
| virtual xtd::string | to_string () const noexcept |
| | Returns a xtd::string that represents the current object.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are considered equal.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are the same instance.
|
| |
| | component () |
| | Initialises a new instance of the component class.
|
| |
| virtual bool | can_raise_events () const noexcept |
| | Gets a value indicating whether the component can raise an event.
|
| |
| bool | design_mode () const noexcept |
| | Gets a value that indicates whether the component is currently in design mode.
|
| |