ui/winui/text.cpp

changeset 83
a612adaee43d
parent 77
5de33c2d94c6
--- a/ui/winui/text.cpp	Wed Nov 13 22:10:03 2024 +0100
+++ b/ui/winui/text.cpp	Thu Nov 14 17:25:23 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