aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-02 00:15:52 +0800
committercrupest <crupest@outlook.com>2018-10-02 00:15:52 +0800
commit3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (patch)
tree095da7f36e7f4e150080feb753a2995fe2bac8c3 /src/main.cpp
parentc9a423ef94f684ff21e79526f77f8ddc31a2100d (diff)
downloadcru-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.cpp8
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();