36 if (accepts_return_ != value) {
37 accepts_return_ = value;
103 void select(
size_t start,
size_t length)
override;
127 bool accepts_return_ =
false;
129 char32_t password_char_ = 0;
130 bool use_system_password_char_ =
false;
Contains xtd::forms::border_style enum class.
Contains xtd::forms::character_casing enum class.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:39
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
static const event_args empty
Provides a value to use with events that do not have event data.
Definition: event_args.h:31
Represents an event.
Definition: event.h:21
Implements the basic functionality required by text controls.
Definition: text_box_base.h:20
virtual size_t selection_start() const
Gets o the starting point of text selected in the text box.
Definition: text_box_base.h:120
virtual size_t selection_length() const
Gets the number of characters selected in the text box.
Definition: text_box_base.h:107
Represents a standard Windows text box.
Definition: text_box.h:22
size_t selection_length() const override
Gets the number of characters selected in the text box.
virtual xtd::forms::character_casing character_casing() const
Gets whether the text_box control modifies the case of characters as they are typed.
Definition: text_box.h:47
const xtd::ustring & text() const override
Gets the text associated with this control.
control & text(const xtd::ustring &text) override
Sets the text associated with this control.
drawing::color default_fore_color() const override
Gets the default foreground color of the control.
Definition: text_box.h:56
virtual char32_t password_char() const
Gets the character used to mask characters of a password in a single-line TextBox control.
Definition: text_box.h:64
virtual bool accepts_return() const
Gets a value indicating whether pressing ENTER in a multiline text_box control creates a new line of ...
Definition: text_box.h:30
void wnd_proc(message &message) override
Processes Windows messages.
void on_handle_created(const event_args &e) override
Raises the control::handle_created event.
text_box()
initializes a new instance of the text_box class.
size_t selection_start() const override
Gets o the starting point of text selected in the text box.
virtual text_box & character_casing(xtd::forms::character_casing value)
Sets whether the text_box control modifies the case of characters as they are typed.
drawing::color default_back_color() const override
Gets the default background color of the control.
Definition: text_box.h:54
virtual text_box & accepts_return(bool value)
Sets a value indicating whether pressing ENTER in a multiline text_box control creates a new line of ...
Definition: text_box.h:35
forms::create_params create_params() const override
Gets the required creation parameters when the control handle is created.
drawing::size default_size() const override
Gets the default size of the control.
Definition: text_box.h:58
virtual text_box & use_system_password_char(bool value)
Sets a value indicating whether the text in the TextBox control should appear as the default password...
void append_text(const xtd::ustring &value) override
Appends text to the current text of a text box.
virtual void on_accepts_return_changed(const event_args &e)
Raises the text_box::accepts_return_changed event.
Definition: text_box.h:112
void on_text_changed(const event_args &e) override
Raises the control::text_changed event.
void select(size_t start, size_t length) override
Selects a range of text in the text box.
virtual bool use_system_password_char() const
Gets a value indicating whether the text in the TextBox control should appear as the default password...
Definition: text_box.h:90
drawing::size measure_control() const override
Measure this control.
virtual text_box & password_char(char32_t value)
Sets the character used to mask characters of a password in a single-line TextBox control.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
event< text_box, event_handler > accepts_return_changed
Occurs when the value of the accepts_return property has changed.
Definition: text_box.h:99
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::forms::text_box_base control.