diff options
author | crupest <crupest@outlook.com> | 2018-10-02 01:09:35 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-02 01:09:35 +0800 |
commit | 040a6c18f18100b825a56443a73aa1de64e4518c (patch) | |
tree | a271bddb244fa2041f14f8d46d249457cee09e5f /src/main.cpp | |
parent | a3b78397f71c35e51681104b572de06a1780e4ee (diff) | |
download | cru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.gz cru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.bz2 cru-040a6c18f18100b825a56443a73aa1de64e4518c.zip |
Make text box use border delegate. Fix layout bug in margin container.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index e11fbbe0..7a105d79 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -153,9 +153,16 @@ int APIENTRY wWinMain( */ window.AddChild( - Button::Create( - {TextBlock::Create(L"Button")} - ) + Border::Create({ + MarginContainer::Create(Thickness(50, 50), { + LinearLayout::Create(LinearLayout::Orientation::Vertical, { + Button::Create({ + TextBlock::Create(L"Button") + }), + TextBox::Create() + }) + }) + }) ); window.Show(); |