xtd 0.2.0
input_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
7#include "common_dialog.hpp"
8#include <xtd/delegate>
9
11namespace xtd {
13 namespace forms {
39 struct data;
40 public:
42
47
49
58
66
70 bool multiline() const noexcept;
76
79 xtd::string message() const noexcept;
83 input_dialog& message(const xtd::string& message);
84
87 xtd::string text() const noexcept;
91 input_dialog& text(const xtd::string& text);
92
96 bool use_system_password_char() const noexcept;
102
105 xtd::string value() const noexcept;
109 input_dialog& value(const xtd::string& value);
110
114 bool word_wrap() const noexcept;
121
123
126 void reset() noexcept override;
128
129 protected:
131
133 bool run_dialog(intptr owner) override;
134 void run_sheet(intptr owner) override;
136
137 private:
138 xtd::sptr<data> data_;
139 };
140 }
141}
Contains xtd::forms::character_casing enum class.
common_dialog()
Initializes a new instance of the common_dialog class.
input_dialog()
Initializes a new instance of the input_dialog class.
void reset() noexcept override
Resets all properties to empty string.
bool multiline() const noexcept
Gets multiline status.
xtd::string message() const noexcept
Gets the text message.
xtd::string value() const noexcept
Gets the value.
bool word_wrap() const noexcept
Gets word wrap status.
void run_sheet(intptr owner) override
When overridden in a derived class, specifies a common dialog box.
bool use_system_password_char() const noexcept
Gets use system password char status.
xtd::string text() const noexcept
Gets the dialog caption text.
bool run_dialog(intptr owner) override
When overridden in a derived class, specifies a common dialog box.
xtd::forms::character_casing character_casing() const noexcept
Gets the character casing.
xtd::forms::dialog_appearance dialog_appearance() const noexcept
Gets the dialog appearance.
Contains xtd::forms::common_dialog class.
Contains xtd::forms::dialog_appearance enum class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
character_casing
Specifies the case of characters in a text_box control.
Definition character_casing.hpp:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201