#include <exception_dialog.h>
Represents a common dialog box that displays exception dialog.
- Namespace
- xtd::forms
- Library
- xtd.forms
- Examples
- The following code example demonstrates the use of exception_dialog dialog.
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text(
"Exception dialog example");
controls().push_back(button1);
button1.location({10, 10});
button1.auto_size(true);
button1.text("Exception...");
button1.click += [&] {
try {
}
};
}
private:
};
int main() {
}
- Examples:
- exception_dialog.cpp.
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
virtual 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...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance. 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 ()=default |
| Initialises a new instance of the component class. More...
|
|
virtual bool | can_raise_events () const |
| Gets a value indicating whether the component can raise an event. More...
|
|
bool | design_mode () const |
| Gets a value that indicates whether the component is currently in design mode. More...
|
|
◆ exception_dialog()
xtd::forms::exception_dialog::exception_dialog |
( |
| ) |
|
|
default |
◆ dialog_result()
Gets async dialog_result result after dialog box is closing.
- Returns
- ok if the user clicks OK in the dialog box; otherwise, cancel.
◆ dialog_style() [1/2]
◆ dialog_style() [2/2]
◆ exception() [1/2]
std::reference_wrapper<const std::exception> xtd::forms::exception_dialog::exception |
( |
| ) |
const |
|
inline |
◆ exception() [2/2]
exception_dialog& xtd::forms::exception_dialog::exception |
( |
const std::exception & |
exception | ) |
|
|
inline |
Sets exception.
- Parameters
-
- Returns
- Current exception_dialog instance.
- Warning
- Contains only a reference on the parameter exception. Do not delete exception before closing dialog.
◆ on_dialog_closed()
Raises the close event.
- Parameters
-
e | An exception_dialog_closed_event_args that provides the event data. |
◆ reset()
void xtd::forms::exception_dialog::reset |
( |
| ) |
|
Resets all properties to empty string.
◆ show_dialog() [1/2]
Runs exception dialog box.
◆ show_dialog() [2/2]
Runs exception dialog box.
◆ show_sheet()
void xtd::forms::exception_dialog::show_sheet |
( |
const iwin32_window & |
owner | ) |
|
Runs exception dialog box.
◆ show_sheet_dialog()
◆ text() [1/2]
Gets the dialog caption text.
- Returns
- The current dialog caption text.
◆ text() [2/2]
Sets the dialog caption text.
- Parameters
-
text | The new dialog caption text. |
- Returns
- Current input_dialog instance.
The documentation for this class was generated from the following file: