aboutsummaryrefslogtreecommitdiff
path: root/demos/main
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-07-05 23:06:02 +0800
committercrupest <crupest@outlook.com>2020-07-05 23:06:02 +0800
commit5c805e494425a88da1813902b1ad8a1ab351e30d (patch)
treebe3cfd96dcac19db3e256d610d48b5083c489a6c /demos/main
parentbbec59718bf8a824583869126762013112f8e568 (diff)
downloadcru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.gz
cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.bz2
cru-5c805e494425a88da1813902b1ad8a1ab351e30d.zip
...
Diffstat (limited to 'demos/main')
-rw-r--r--demos/main/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/main/main.cpp b/demos/main/main.cpp
index 832ef75e..a0d4cd88 100644
--- a/demos/main/main.cpp
+++ b/demos/main/main.cpp
@@ -34,15 +34,15 @@ int main() {
const auto button = Button::Create();
const auto text_block1 = TextBlock::Create();
- text_block1->SetText("Hello World!");
+ text_block1->SetText(u"Hello World!");
button->SetChild(text_block1);
flex_layout->AddChild(button, 0);
const auto text_block2 = TextBlock::Create();
- text_block2->SetText("Hello World!");
+ text_block2->SetText(u"Hello World!");
const auto text_block3 = TextBlock::Create();
- text_block3->SetText("Overlapped text");
+ text_block3->SetText(u"Overlapped text");
const auto stack_layout = StackLayout::Create();
stack_layout->AddChild(text_block2, 0);
@@ -50,7 +50,7 @@ int main() {
flex_layout->AddChild(stack_layout, 1);
const auto text_block4 = TextBlock::Create();
- text_block4->SetText("Hello World!!!");
+ text_block4->SetText(u"Hello World!!!");
flex_layout->AddChild(text_block4, 2);
window->GetUiHost()->GetNativeWindowResolver()->Resolve()->SetVisible(true);