aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-16 21:02:21 +0800
committercrupest <crupest@outlook.com>2021-11-16 21:02:21 +0800
commit835ec1f25454cd14c5eda45b5bcb614c894fc948 (patch)
tree3b077988ba8ad6d02fc5a9307c90017b49e20e45 /src/ui/controls
parent59844d990aa72d1f69a3bd30efc94e6d23fa1468 (diff)
downloadcru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.gz
cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.tar.bz2
cru-835ec1f25454cd14c5eda45b5bcb614c894fc948.zip
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/TextBox.cpp1
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);