ui/winui/label.cpp

changeset 18
af411868ab9b
parent 3
f154867f54dc
equal deleted inserted replaced
17:7cfd36aa005b 18:af411868ab9b
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