ui/winui/text.cpp

branch
newapi
changeset 382
de653b07050b
parent 379
958bae372271
--- a/ui/winui/text.cpp	Wed Nov 13 22:02:50 2024 +0100
+++ b/ui/winui/text.cpp	Thu Nov 14 17:26:16 2024 +0100
@@ -62,6 +62,7 @@
     UIElement elm = textarea;
     UiWidget* widget = new UiWidget(elm);
     ui_context_add_widget_destructor(current->ctx, widget);
+    ui_set_widget_groups(current->ctx, widget, args.groups);
 
     UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_TEXT);
     if (var) {
@@ -180,6 +181,7 @@
     UIElement elm = textfield;
     UiWidget* widget = new UiWidget(elm);
     ui_context_add_widget_destructor(current->ctx, widget);
+    ui_set_widget_groups(current->ctx, widget, args.groups);
 
     UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_STRING);
     if (var) {
@@ -212,6 +214,7 @@
     UIElement elm = textfield;
     UiWidget* widget = new UiWidget(elm);
     ui_context_add_widget_destructor(current->ctx, widget);
+    ui_set_widget_groups(current->ctx, widget, args.groups);
 
     UiVar* var = uic_widget_var(obj->ctx, current->ctx, args.value, args.varname, UI_VAR_STRING);
     if (var) {

mercurial