ui/winui/label.cpp

branch
newapi
changeset 231
e160bb392148
parent 221
a82d9beaa94a
child 245
06e655d15b17
equal deleted inserted replaced
230:4f5b32a2a60f 231:e160bb392148
92 92
93 char* ui_label_get(UiString* str) { 93 char* ui_label_get(UiString* str) {
94 UiWidget* widget = (UiWidget*)str->obj; 94 UiWidget* widget = (UiWidget*)str->obj;
95 TextBlock box = widget->uielement.as<TextBlock>(); 95 TextBlock box = widget->uielement.as<TextBlock>();
96 std::wstring wstr(box.Text()); 96 std::wstring wstr(box.Text());
97 return ui_string_get(str, wstr); 97 return ui_wstring_get(str, wstr);
98 } 98 }
99 99
100 void ui_label_set(UiString* str, const char* newvalue) { 100 void ui_label_set(UiString* str, const char* newvalue) {
101 UiWidget* widget = (UiWidget*)str->obj; 101 UiWidget* widget = (UiWidget*)str->obj;
102 TextBox box = widget->uielement.as<TextBox>(); 102 TextBox box = widget->uielement.as<TextBox>();
103 box.Text(ui_string_set(str, newvalue)); 103 box.Text(ui_wstring_set(str, newvalue));
104 } 104 }
105 105
106 106
107 // -------------------- progressbar ------------------------- 107 // -------------------- progressbar -------------------------
108 108

mercurial