ui/motif/window.c

branch
newapi
changeset 424
51e856688fba
parent 416
89ad8467c39f
equal deleted inserted replaced
423:02bafb660eb2 424:51e856688fba
105 // content frame 105 // content frame
106 n = 0; 106 n = 0;
107 Widget frame = XmCreateFrame(window, "window_frame", args, n); 107 Widget frame = XmCreateFrame(window, "window_frame", args, n);
108 XtManageChild(frame); 108 XtManageChild(frame);
109 109
110 Widget vbox = XtCreateManagedWidget("window_vbox", gridClass, frame, NULL, 0); 110 Widget form = XmCreateForm(frame, "window_form", args, 0);
111 XtManageChild(form);
112
113 n = 0;
114 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
115 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); n++;
116 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
117 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
118 Widget vbox = XtCreateManagedWidget("window_vbox", gridClass, form, args, n);
111 UiContainerX *container = ui_box_container(obj, vbox, UI_BOX_VERTICAL); 119 UiContainerX *container = ui_box_container(obj, vbox, UI_BOX_VERTICAL);
112 uic_object_push_container(obj, container); 120 uic_object_push_container(obj, container);
113 121
114 obj->widget = toplevel; 122 obj->widget = toplevel;
115 nwindows++; 123 nwindows++;

mercurial