ui/winui/label.cpp

branch
newapi
changeset 245
06e655d15b17
parent 231
e160bb392148
equal deleted inserted replaced
244:33c0a3797a0d 245:06e655d15b17
97 return ui_wstring_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 TextBlock box = widget->uielement.as<TextBlock>();
103 box.Text(ui_wstring_set(str, newvalue)); 103 box.Text(ui_wstring_set(str, newvalue));
104 } 104 }
105 105
106 106
107 // -------------------- progressbar ------------------------- 107 // -------------------- progressbar -------------------------

mercurial