xtd 0.2.0
Loading...
Searching...
No Matches
exception_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "dialog_result.h"
7#include "iwin32_window.h"
8#include <xtd/static>
9#include <xtd/ustring>
10
12namespace xtd {
14 namespace forms {
16 class control;
18
36 public:
38
42 static dialog_result show(const iwin32_window& owner);
46 static dialog_result show(const iwin32_window& owner, const xtd::ustring& caption);
50 static dialog_result show(const iwin32_window& owner, const std::exception& exception);
55 static dialog_result show(const iwin32_window& owner, const std::exception& exception, const xtd::ustring& caption);
56
61 static dialog_result show(const xtd::ustring& caption);
64 static dialog_result show(const std::exception& exception);
68 static dialog_result show(const std::exception& exception, const xtd::ustring& caption);
70
71 private:
72 static dialog_result show_exception_box(const iwin32_window* owner, const std::exception* exception = nullptr, const xtd::ustring& caption = "");
73 };
74 }
75}
Represents a common dialog box that displays exception box.
Definition exception_box.h:35
static dialog_result show(const iwin32_window &owner)
Displays a exception box in front of the specified window. The exception box displays an unknown exce...
static dialog_result show(const std::exception &exception, const xtd::ustring &caption)
Displays a exception box. The exception box displays a specified exception and caption.
static dialog_result show()
Displays a exception box. The exception box displays an unknown exception.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &caption)
Displays a exception box in front of the specified window. The exception box displays a specified cap...
static dialog_result show(const iwin32_window &owner, const std::exception &exception, const xtd::ustring &caption)
Displays a exception box in front of the specified window. The exception box displays a specified exc...
static dialog_result show(const iwin32_window &owner, const std::exception &exception)
Displays a exception box in front of the specified window. The exception box displays a specified exc...
static dialog_result show(const xtd::ustring &caption)
Displays a exception box. The exception box displays a specified caption and unknown exception.
static dialog_result show(const std::exception &exception)
Displays a exception box. The exception box displays a specified exception.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:21
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::dialog_result enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
@ control
The left or right CTRL modifier key.
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:41
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10