summaryrefslogtreecommitdiff
path: root/Userland/guitest2.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-26 06:39:13 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-26 06:39:13 +0100
commitd72575d1967060b691e94f462997fdc43e5cd384 (patch)
treea108dacc4113b8ddd5e58dc7faf0de79aa585ebf /Userland/guitest2.cpp
parent57fb0272168371de0fac1d54d0f5830b1565aa94 (diff)
downloadserenity-d72575d1967060b691e94f462997fdc43e5cd384.zip
LibGUI: Start bringing up GTextBox in the standalone world.
Diffstat (limited to 'Userland/guitest2.cpp')
-rw-r--r--Userland/guitest2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/guitest2.cpp b/Userland/guitest2.cpp
index cbba9a2bcc..3b50b8a64f 100644
--- a/Userland/guitest2.cpp
+++ b/Userland/guitest2.cpp
@@ -13,6 +13,7 @@
#include <LibGUI/GLabel.h>
#include <LibGUI/GButton.h>
#include <LibGUI/GEventLoop.h>
+#include <LibGUI/GTextBox.h>
static GWindow* make_font_test_window();
static GWindow* make_launcher_window();
@@ -107,5 +108,10 @@ GWindow* make_launcher_window()
dummy_button->set_relative_rect({ 5, 80, 90, 20 });
dummy_button->set_caption("Dummy");
+ auto* textbox = new GTextBox(widget);
+ textbox->set_relative_rect({ 5, 110, 90, 20 });
+
+ window->set_focused_widget(textbox);
+
return window;
}