ui/motif/window.c

branch
newapi
changeset 424
51e856688fba
parent 416
89ad8467c39f
--- a/ui/motif/window.c	Tue Dec 31 16:21:57 2024 +0100
+++ b/ui/motif/window.c	Tue Dec 31 17:22:16 2024 +0100
@@ -107,7 +107,15 @@
     Widget frame = XmCreateFrame(window, "window_frame", args, n);
     XtManageChild(frame);
     
-    Widget vbox = XtCreateManagedWidget("window_vbox", gridClass, frame, NULL, 0);
+    Widget form = XmCreateForm(frame, "window_form", args, 0);
+    XtManageChild(form);
+    
+    n = 0;
+    XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
+    XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); n++;
+    XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
+    XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
+    Widget vbox = XtCreateManagedWidget("window_vbox", gridClass, form, args, n);
     UiContainerX *container = ui_box_container(obj, vbox, UI_BOX_VERTICAL);
     uic_object_push_container(obj, container);
     

mercurial