diff options
author | crupest <crupest@outlook.com> | 2021-11-16 21:02:21 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-16 21:02:21 +0800 |
commit | 835ec1f25454cd14c5eda45b5bcb614c894fc948 (patch) | |
tree | 3b077988ba8ad6d02fc5a9307c90017b49e20e45 /src/ui/controls/TextBox.cpp | |
parent | 59844d990aa72d1f69a3bd30efc94e6d23fa1468 (diff) | |
download | cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.gz cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.bz2 cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.zip |
...
Diffstat (limited to 'src/ui/controls/TextBox.cpp')
-rw-r--r-- | src/ui/controls/TextBox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/controls/TextBox.cpp b/src/ui/controls/TextBox.cpp index bfc98c06..622401c4 100644 --- a/src/ui/controls/TextBox.cpp +++ b/src/ui/controls/TextBox.cpp @@ -20,6 +20,7 @@ TextBox::TextBox() text_render_object_ = std::make_unique<TextRenderObject>( theme_resources->text_brush, theme_resources->default_font, theme_resources->text_selection_brush, theme_resources->caret_brush); + text_render_object_->SetEditMode(true); border_render_object_->AddChild(scroll_render_object_.get(), 0); scroll_render_object_->AddChild(text_render_object_.get(), 0); |