xtd 0.2.0
input_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include "character_casing.h"
7 #include "dialog_result.h"
8 #include "input_box_style.h"
9 #include "iwin32_window.h"
10 #include <xtd/static>
11 #include <xtd/ustring>
12 
14 namespace xtd {
16  namespace forms {
33  class forms_export_ input_box final static_ {
34  public:
36 
43  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::forms::iwin32_window& owner);
50  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::forms::iwin32_window& owner, const xtd::ustring& text);
58  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::forms::iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption);
67  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::forms::iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, xtd::forms::input_box_style style);
88  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::forms::iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing, bool word_wrap);
89 
95  static xtd::forms::dialog_result show(xtd::ustring& value);
102  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::ustring& text);
110  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::ustring& text, const xtd::ustring& caption);
119  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::ustring& text, const xtd::ustring& caption, xtd::forms::input_box_style style);
140  static xtd::forms::dialog_result show(xtd::ustring& value, const xtd::ustring& text, const xtd::ustring& caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing, bool word_wrap);
142 
143  private:
144  static xtd::forms::dialog_result show_input_box(xtd::ustring& value, const xtd::forms::iwin32_window* owner = nullptr, const xtd::ustring& text = "", const xtd::ustring& caption = "", xtd::forms::input_box_style style = xtd::forms::input_box_style::normal, xtd::forms::character_casing casing = xtd::forms::character_casing::normal, bool word_wrap = true);
145  };
146  }
147 }
input_box_style
Specifies constants defining which input_box style is used.
Definition: input_box_style.h:20
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:41
The default appearance defined by the control class.
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::forms::iwin32_window interface.
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Contains xtd::forms::input_box_style enum class.
Contains xtd::forms::character_casing enum class.
Contains xtd::forms::dialog_result enum class.
character_casing
Specifies the case of characters in a text_box control.
Definition: character_casing.h:20
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd::forms::status_bar_panel displays text in the standard font.
Represents a common dialog box that displays input box.
Definition: input_box.h:33