diff options
author | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
commit | 3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (patch) | |
tree | 095da7f36e7f4e150080feb753a2995fe2bac8c3 /src/main.cpp | |
parent | c9a423ef94f684ff21e79526f77f8ddc31a2100d (diff) | |
download | cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.gz cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.bz2 cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.zip |
Make button use border delegate.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4f711208..e11fbbe0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -143,12 +143,20 @@ int APIENTRY wWinMain( window.AddChild(layout); */ + /* window.AddChild( CreateWithLayout<Border>(LayoutSideParams::Exactly(200), LayoutSideParams::Content(), std::initializer_list<cru::ui::Control*>{ CreateWithLayout<TextBox>(LayoutSideParams::Stretch(), LayoutSideParams::Content()) } )); + */ + + window.AddChild( + Button::Create( + {TextBlock::Create(L"Button")} + ) + ); window.Show(); |