xtd 0.2.0
input_dialog.h
Go to the documentation of this file.
1 #pragma once
5 #include "dialog_appearance.h"
6 #include "character_casing.h"
7 #include "common_dialog.h"
8 #include <xtd/delegate>
9 
11 namespace xtd {
13  namespace forms {
36  class forms_export_ input_dialog : public common_dialog {
37  struct data;
38  public:
40 
43  input_dialog();
45 
47 
56 
64 
68  bool multiline() const noexcept;
74 
77  xtd::ustring message() const noexcept;
82 
85  xtd::ustring text() const noexcept;
90 
94  bool use_system_password_char() const noexcept;
99  input_dialog& use_system_password_char(bool use_system_password_char);
100 
103  xtd::ustring value() const noexcept;
107  input_dialog& value(const xtd::ustring& value);
108 
112  bool word_wrap() const noexcept;
117  input_dialog& word_wrap(bool word_wrap);
119 
121 
124  void reset() noexcept override;
126 
127  protected:
129 
131  bool run_dialog(intptr owner) override;
132  void run_sheet(intptr owner) override;
134 
135  private:
136  std::shared_ptr<data> data_;
137  };
138  }
139 }
control_appearance dialog_appearance
Specifies the appearance of a dialog.
Definition: dialog_appearance.h:19
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::common_dialog class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
control_appearance
Specifies the appearance of a control.
Definition: control_appearance.h:19
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents a common dialog box that displays input dialog.
Definition: input_dialog.h:36
Contains xtd::forms::character_casing enum class.
character_casing
Specifies the case of characters in a text_box control.
Definition: character_casing.h:20
Implements a Windows message.
Definition: message.h:26
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Specifies the base class used for displaying dialog boxes on the screen.
Definition: common_dialog.h:32
The xtd::forms::status_bar_panel displays text in the standard font.