Represents a common dialog box that displays input dialog.
Windows | macOS | Gnome | |
---|---|---|---|
Light | | | |
Dark | | | |
Public Constructors | |
input_dialog () | |
Initializes a new instance of the input_dialog class. | |
Public Properties | |
xtd::forms::character_casing | character_casing () const noexcept |
Gets the character casing. | |
input_dialog & | character_casing (xtd::forms::character_casing character_casing) |
Sets the character casing. | |
xtd::forms::dialog_appearance | dialog_appearance () const noexcept |
Gets the dialog appearance. | |
input_dialog & | dialog_appearance (xtd::forms::dialog_appearance dialog_appearance) |
Sets the dialog appearance. | |
bool | multiline () const noexcept |
Gets multiline status. | |
input_dialog & | multiline (bool multiline) |
Sets multiline status. | |
xtd::string | message () const noexcept |
Gets the text message. | |
input_dialog & | message (const xtd::string &message) |
Sets the text message. | |
xtd::string | text () const noexcept |
Gets the dialog caption text. | |
input_dialog & | text (const xtd::string &text) |
Sets the dialog caption text. | |
bool | use_system_password_char () const noexcept |
Gets use system password char status. | |
input_dialog & | use_system_password_char (bool use_system_password_char) |
Sets use system password char status. | |
xtd::string | value () const noexcept |
Gets the value. | |
input_dialog & | value (const xtd::string &value) |
Sets the value. | |
bool | word_wrap () const noexcept |
Gets word wrap status. | |
input_dialog & | word_wrap (bool word_wrap) |
Sets word wrap status. | |
Public Methods | |
void | reset () noexcept override |
Resets all properties to empty string. | |
Protected Methods | |
bool | run_dialog (intptr owner) override |
When overridden in a derived class, specifies a common dialog box. | |
void | run_sheet (intptr owner) override |
When overridden in a derived class, specifies a common dialog box. | |
Additional Inherited Members | |
Public Attributes inherited from xtd::forms::common_dialog | |
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 Member Functions inherited from xtd::forms::common_dialog | |
common_dialog () | |
Initializes a new instance of the common_dialog class. | |
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. | |
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. | |
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::common_dialog | |
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. | |
void | set_dialog_result (xtd::forms::dialog_result value) |
Sets async dialog_result result after dialog box is closing. | |
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::input_dialog::input_dialog | ( | ) |
Initializes a new instance of the input_dialog class.
|
noexcept |
Gets the character casing.
input_dialog & xtd::forms::input_dialog::character_casing | ( | xtd::forms::character_casing | character_casing | ) |
Sets the character casing.
dialog_appearance | One of the xtd::forms::character_casing values. The default value is xtd::forms::character_casing::normal. |
|
noexcept |
Gets the dialog appearance.
input_dialog & xtd::forms::input_dialog::dialog_appearance | ( | xtd::forms::dialog_appearance | dialog_appearance | ) |
Sets the dialog appearance.
dialog_appearance | One of the xtd::forms::dialog_appearance values. The default value is xtd::forms::dialog_appearance::standard. |
|
noexcept |
Gets multiline status.
input_dialog & xtd::forms::input_dialog::multiline | ( | bool | multiline | ) |
Sets multiline status.
multiline | true if dialog text box is multiline; otherwise false. |
|
noexcept |
input_dialog & xtd::forms::input_dialog::message | ( | const xtd::string & | message | ) |
|
noexcept |
Gets the dialog caption text.
input_dialog & xtd::forms::input_dialog::text | ( | const xtd::string & | text | ) |
Sets the dialog caption text.
text | The new dialog caption text. |
|
noexcept |
Gets use system password char status.
input_dialog & xtd::forms::input_dialog::use_system_password_char | ( | bool | use_system_password_char | ) |
Sets use system password char status.
use_system_password_char | true if dialog text box use system password char status; otherwise false. |
|
noexcept |
Gets the value.
input_dialog & xtd::forms::input_dialog::value | ( | const xtd::string & | value | ) |
|
noexcept |
Gets word wrap status.
input_dialog & xtd::forms::input_dialog::word_wrap | ( | bool | word_wrap | ) |
Sets word wrap status.
word_wrap | true if dialog text box is word wrap; otherwise false. |
|
overridevirtualnoexcept |
Resets all properties to empty string.
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
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. |
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
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. |
Implements xtd::forms::common_dialog.