xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <common_dialog.h>
Specifies the base class used for displaying dialog boxes on the screen.
Inherits xtd::forms::component.
Inherited by xtd::forms::color_dialog, xtd::forms::file_dialog, xtd::forms::folder_browser_dialog, xtd::forms::font_dialog, and xtd::forms::input_dialog.
Public Attributes | |
event< common_dialog, dialog_closed_event_handler > | dialog_closed |
Occurs when the user close a common dialog box with dialog close button or other dialog buttons. | |
event< common_dialog, help_event_handler > | help_request |
Occurs when the user clicks the Help button on a common dialog box. | |
Public Member Functions | |
common_dialog ()=default | |
Initializes a new instance of the common_dialog class. | |
xtd::forms::dialog_result | dialog_result () const |
Get async dialog_result result after dialog box is closing. | |
virtual void | reset ()=0 |
When overridden in a derived class, resets the properties of a common dialog box to their default values. | |
xtd::forms::dialog_result | show_dialog () |
Runs a common dialog box with a default owner. | |
xtd::forms::dialog_result | show_dialog (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. | |
void | show_sheet (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. | |
xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. | |
std::any | tag () const |
Gets an object that contains data about the control. | |
common_dialog & | tag (const std::any &tag) |
Sets an object that contains data about the control. | |
Public Member Functions inherited from xtd::object | |
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 size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Protected Member Functions | |
virtual void | on_dialog_closed (const dialog_closed_event_args &e) |
Raises the common_dialog::dialog_close event. | |
virtual void | on_help_request (help_event_args &e) |
Raises the common_dialog::help_request event. | |
virtual bool | run_dialog (intptr_t hwnd_owner)=0 |
When overridden in a derived class, specifies a common dialog box. | |
virtual void | run_sheet (intptr_t hwnd_owner)=0 |
When overridden in a derived class, specifies a common dialog box. | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. | |
virtual bool | can_raise_events () const |
Gets a value indicating whether the component can raise an event. | |
bool | design_mode () const |
Gets a value that indicates whether the component is currently in design mode. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the common_dialog class.
|
inline |
Get async dialog_result result after dialog box is closing.
|
inlineprotectedvirtual |
Raises the common_dialog::dialog_close event.
e | An common_dialog_close_event_args that provides the event data. |
|
inlineprotectedvirtual |
Raises the common_dialog::help_request event.
e | An help_event_args that provides the event data. |
|
pure virtual |
When overridden in a derived class, resets the properties of a common dialog box to their default values.
Implemented in xtd::forms::color_dialog, xtd::forms::file_dialog, xtd::forms::folder_browser_dialog, xtd::forms::font_dialog, and xtd::forms::input_dialog.
|
protectedpure virtual |
When overridden in a derived class, specifies a common dialog box.
hwnd_owner | A value that represents the window handle of the owner window for the common dialog box. |
Implemented in xtd::forms::file_dialog, xtd::forms::color_dialog, xtd::forms::folder_browser_dialog, xtd::forms::font_dialog, and xtd::forms::input_dialog.
|
protectedpure virtual |
When overridden in a derived class, specifies a common dialog box.
hwnd_owner | A value that represents the window handle of the owner window for the common dialog box. |
Implemented in xtd::forms::file_dialog, xtd::forms::color_dialog, xtd::forms::folder_browser_dialog, xtd::forms::font_dialog, and xtd::forms::input_dialog.
|
inline |
Runs a common dialog box with a default owner.
|
inline |
Runs a common dialog box with the specified owner.
owner | Any object that implements iwn32_window that represents the top-level window that will own the modal dialog box. |
|
inline |
Runs a common dialog box with the specified owner.
owner | Any object that implements iwn32_window that represents the top-level window that will own the modal dialog box. |
|
inline |
Runs a common dialog box with the specified owner.
owner | Any object that implements iwn32_window that represents the top-level window that will own the modal dialog box. |
|
inline |
Gets an object that contains data about the control.
|
inline |
Sets an object that contains data about the control.
tag | The object that contains data about the common_dialog. |