diff options
author | crupest <crupest@outlook.com> | 2018-09-24 00:16:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-24 00:16:53 +0800 |
commit | 977c766e2337fea238804b8d8b97659361391ed0 (patch) | |
tree | ff3438e5b0517c52412cfa497d1d2a0ed314cf79 /CruUI/main.cpp | |
parent | be84ddd03d3b59c0c27aa538d5ef5129f94d511c (diff) | |
download | cru-977c766e2337fea238804b8d8b97659361391ed0.tar.gz cru-977c766e2337fea238804b8d8b97659361391ed0.tar.bz2 cru-977c766e2337fea238804b8d8b97659361391ed0.zip |
Develop basic function of textbox.
Diffstat (limited to 'CruUI/main.cpp')
-rw-r--r-- | CruUI/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CruUI/main.cpp b/CruUI/main.cpp index 56d42894..3d801964 100644 --- a/CruUI/main.cpp +++ b/CruUI/main.cpp @@ -6,6 +6,7 @@ #include "ui/controls/button.h" #include "ui/controls/margin_container.h" #include "ui/events/ui_event.h" +#include "ui/controls/text_box.h" using cru::String; @@ -20,6 +21,7 @@ using cru::ui::controls::TextBlock; using cru::ui::controls::ToggleButton; using cru::ui::controls::Button; using cru::ui::controls::MarginContainer; +using cru::ui::controls::TextBox; int APIENTRY wWinMain( HINSTANCE hInstance, @@ -84,8 +86,9 @@ int APIENTRY wWinMain( }); */ + /* //test 2 - + const auto layout = CreateWithLayout<LinearLayout>(LayoutSideParams::Exactly(500), LayoutSideParams::Content()); layout->mouse_click_event.AddHandler([layout](cru::ui::events::MouseButtonEventArgs& args) @@ -137,6 +140,9 @@ int APIENTRY wWinMain( window.AddChild(layout); + */ + + window.AddChild(CreateWithLayout<TextBox>(LayoutSideParams::Stretch(), LayoutSideParams::Stretch())); window.Show(); |