mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibGUI: Start bringing up GTextBox in the standalone world.
This commit is contained in:
parent
57fb027216
commit
d72575d196
10 changed files with 165 additions and 121 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue