diff options
author | crupest <crupest@outlook.com> | 2018-09-21 22:53:12 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-21 22:53:12 +0800 |
commit | 82a45e611a2638cff7e3fffc09ba4569ca53a274 (patch) | |
tree | 69d6eb024b9aa35949761d6e75df28717ff02e35 /CruUI/main.cpp | |
parent | 5f7d3268e3d2ea84a1afc97c209b703bf4092c76 (diff) | |
download | cru-82a45e611a2638cff7e3fffc09ba4569ca53a274.tar.gz cru-82a45e611a2638cff7e3fffc09ba4569ca53a274.tar.bz2 cru-82a45e611a2638cff7e3fffc09ba4569ca53a274.zip |
Add selectable switch in text block.
Diffstat (limited to 'CruUI/main.cpp')
-rw-r--r-- | CruUI/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CruUI/main.cpp b/CruUI/main.cpp index 6c96c833..3c10f73b 100644 --- a/CruUI/main.cpp +++ b/CruUI/main.cpp @@ -113,7 +113,12 @@ int APIENTRY wWinMain( }); layout->AddChild(text_block); - layout->AddChild(create_text_block(L"This is a very very very very very long sentence!!!", MeasureLength::Stretch(), MeasureLength::Stretch())); + } + + { + const auto text_block = create_text_block(L"This is a very very very very very long sentence!!!", MeasureLength::Stretch(), MeasureLength::Stretch()); + text_block->SetSelectable(true); + layout->AddChild(text_block); } { |