Specifies the base class used for displaying dialog boxes on the screen.
Public Events | |
| event< common_dialog, help_event_handler > | help_request | 
| Occurs when the user clicks the Help button on a common dialog box.   | |
| 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.   | |
Public Constructors | |
| common_dialog () | |
| Initializes a new instance of the common_dialog class.   | |
Public Properties | |
| xtd::forms::dialog_result | dialog_result () const noexcept | 
| Gets async dialog_result result after dialog box is closing.   | |
| std::any | tag () const noexcept | 
| 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 Methods | |
| virtual void | reset () noexcept=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.   | |
Peotected methods | |
| 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 hwnd_owner)=0 | 
| When overridden in a derived class, specifies a common dialog box.   | |
| virtual void | run_sheet (intptr hwnd_owner)=0 | 
| When overridden in a derived class, specifies a common dialog box.   | |
| void | set_dialog_result (xtd::forms::dialog_result value) | 
| Sets async dialog_result result after dialog box is closing.   | |
Additional Inherited Members | |
  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.   | |
| virtual type_object | get_type () const noexcept | 
| Gets the type of the current instance.   | |
| template<typename object_t > | |
| xtd::uptr< 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.   | |
  Static Public Member Functions inherited from xtd::object | |
| template<typename object_a_t , typename 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<typename object_a_t , typename 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.   | |
  Protected Member Functions inherited from xtd::forms::component | |
| 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.   | |
| xtd::forms::common_dialog::common_dialog | ( | ) | 
Initializes a new instance of the common_dialog class.
      
  | 
  noexcept | 
Gets async dialog_result result after dialog box is closing.
      
  | 
  noexcept | 
Gets an object that contains data about the control.
| common_dialog & xtd::forms::common_dialog::tag | ( | const std::any & | tag | ) | 
Sets an object that contains data about the control.
| tag | The object that contains data about the common_dialog. | 
      
  | 
  pure virtualnoexcept | 
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.
| xtd::forms::dialog_result xtd::forms::common_dialog::show_dialog | ( | ) | 
Runs a common dialog box with a default owner.
| xtd::forms::dialog_result xtd::forms::common_dialog::show_dialog | ( | const iwin32_window & | owner | ) | 
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. | 
| void xtd::forms::common_dialog::show_sheet | ( | const iwin32_window & | owner | ) | 
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. | 
| xtd::forms::dialog_result xtd::forms::common_dialog::show_sheet_dialog | ( | const iwin32_window & | owner | ) | 
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. | 
      
  | 
  protectedvirtual | 
Raises the common_dialog::dialog_close event.
| e | An common_dialog_close_event_args that provides the event data. | 
      
  | 
  protectedvirtual | 
Raises the common_dialog::help_request event.
| e | An xtd::forms::help_event_args that provides the event data. | 
      
  | 
  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.
      
  | 
  protected | 
Sets async dialog_result result after dialog box is closing.
| value | ok if the user clicks OK in the dialog box; otherwise, cancel. | 
| event<common_dialog, help_event_handler> xtd::forms::common_dialog::help_request | 
Occurs when the user clicks the Help button on a common dialog box.
| event<common_dialog, dialog_closed_event_handler> xtd::forms::common_dialog::dialog_closed | 
Occurs when the user close a common dialog box with dialog close button or other dialog buttons.