diff options
author | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
commit | 1d551a7666ee61074fd36fed4f919c9583477fef (patch) | |
tree | 0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/main.cpp | |
parent | bfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff) | |
download | cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2 cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip |
Dev cursor for textbox.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index a9fa7126..ab641075 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,5 @@ #include "application.h" #include "ui/window.h" -#include "ui/events/ui_event.h" #include "ui/controls/linear_layout.h" #include "ui/controls/text_block.h" #include "ui/controls/toggle_button.h" @@ -150,12 +149,12 @@ int APIENTRY wWinMain( )); */ - const auto linear_layout = CreateWithLayout<LinearLayout>(Thickness(50, 50), Thickness(50, 50), LinearLayout::Orientation::Vertical, ControlList({ + const auto linear_layout = CreateWithLayout<LinearLayout>(Thickness(50, 50), Thickness(50, 50), LinearLayout::Orientation::Vertical, ControlList{ Button::Create({ TextBlock::Create(L"Button") }), - TextBox::Create() - })); + CreateWithLayout<TextBox>(Thickness(30), Thickness(20)) + }); linear_layout->SetBordered(true); |