xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <input_dialog.h>
Represents a common dialog box that displays input dialog.
Inherits xtd::forms::common_dialog.
Public Member Functions | |
input_dialog ()=default | |
Initializes a new instance of the input_dialog class. More... | |
xtd::forms::character_casing | character_casing () const |
Gets the character casing. More... | |
input_dialog & | character_casing (xtd::forms::character_casing character_casing) |
Sets the character casing. More... | |
xtd::forms::dialog_style | dialog_style () const |
Gets the dialog style. More... | |
input_dialog & | dialog_style (xtd::forms::dialog_style dialog_style) |
Sets the dialog style. More... | |
xtd::ustring | message () const |
Gets the text message. More... | |
input_dialog & | message (const xtd::ustring &message) |
Sets the text message. More... | |
bool | multiline () const |
Gets multiline status. More... | |
input_dialog & | multiline (bool multiline) |
Sets multiline status. More... | |
void | reset () override |
Resets all properties to empty string. More... | |
xtd::ustring | text () const |
Gets the dialog caption text. More... | |
input_dialog & | text (const xtd::ustring &text) |
Sets the dialog caption text. More... | |
bool | use_system_password_char () const |
Gets use system password char status. More... | |
input_dialog & | use_system_password_char (bool use_system_password_char) |
Sets use system password char status. More... | |
xtd::ustring | value () const |
Gets the value. More... | |
input_dialog & | value (const xtd::ustring &value) |
Sets the value. More... | |
bool | word_wrap () const |
Gets word wrap status. More... | |
input_dialog & | word_wrap (bool word_wrap) |
Sets word wrap status. More... | |
Public Member Functions inherited from xtd::forms::common_dialog | |
common_dialog ()=default | |
Initializes a new instance of the common_dialog class. More... | |
xtd::forms::dialog_result | dialog_result () const |
Get async dialog_result result after dialog box is closing. More... | |
xtd::forms::dialog_result | show_dialog () |
Runs a common dialog box with a default owner. More... | |
xtd::forms::dialog_result | show_dialog (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. More... | |
void | show_sheet (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. More... | |
xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner) |
Runs a common dialog box with the specified owner. More... | |
std::any | tag () const |
Gets an object that contains data about the control. More... | |
common_dialog & | tag (const std::any &tag) |
Sets an object that contains data about the control. More... | |
Public Member Functions inherited from xtd::object | |
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 std::string that represents the current object. More... | |
Protected Member Functions | |
bool | run_dialog (intptr_t owner) override |
When overridden in a derived class, specifies a common dialog box. More... | |
void | run_sheet (intptr_t owner) override |
When overridden in a derived class, specifies a common dialog box. More... | |
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. More... | |
virtual void | on_help_request (help_event_args &e) |
Raises the common_dialog::help_request event. More... | |
Protected Member Functions inherited from xtd::forms::component | |
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... | |
Additional Inherited Members | |
Public Attributes inherited from xtd::forms::common_dialog | |
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. More... | |
event< common_dialog, help_event_handler > | help_request |
Occurs when the user clicks the Help button on a common dialog box. More... | |
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. 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... | |
|
default |
Initializes a new instance of the input_dialog class.
|
inline |
Gets the character casing.
|
inline |
Sets the character casing.
dialog_style | One of the xtd::forms::character_casing values. The default value is xtd::forms::character_casing::normal. |
|
inline |
Gets the dialog style.
|
inline |
Sets the dialog style.
dialog_style | One of the xtd::forms::dialog_style values. The default value is xtd::forms::dialog_style::standard. |
|
inline |
Gets the text message.
|
inline |
|
inline |
Gets multiline status.
|
inline |
Sets multiline status.
multiline | true if dialog text box is multiline; otherwise false. |
|
overridevirtual |
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.
|
inline |
Gets the dialog caption text.
|
inline |
Sets the dialog caption text.
text | The new dialog caption text. |
|
inline |
Gets use system password char status.
|
inline |
Sets use system password char status.
use_system_password_char | true if dialog text box use system password char status; otherwise false. |
|
inline |
Gets the value.
|
inline |
|
inline |
Gets word wrap status.
|
inline |
Sets word wrap status.
word_wrap | true if dialog text box is word wrap; otherwise false. |