ui/winui/label.cpp

branch
newapi
changeset 245
06e655d15b17
parent 231
e160bb392148
--- a/ui/winui/label.cpp	Tue Feb 06 10:09:10 2024 +0100
+++ b/ui/winui/label.cpp	Tue Feb 06 11:44:48 2024 +0100
@@ -99,7 +99,7 @@
 
 void  ui_label_set(UiString* str, const char* newvalue) {
     UiWidget* widget = (UiWidget*)str->obj;
-    TextBox box = widget->uielement.as<TextBox>();
+    TextBlock box = widget->uielement.as<TextBlock>();
     box.Text(ui_wstring_set(str, newvalue));
 }
 

mercurial