95 title, |
95 title, |
96 xmMainWindowWidgetClass, |
96 xmMainWindowWidgetClass, |
97 toplevel, |
97 toplevel, |
98 NULL); |
98 NULL); |
99 |
99 |
|
100 // menu |
|
101 if(!simple) { |
|
102 ui_create_menubar(obj, window); |
|
103 } |
|
104 |
100 // content frame |
105 // content frame |
101 n = 0; |
106 n = 0; |
102 Widget frame = XmCreateFrame(window, "window_frame", args, n); |
107 Widget frame = XmCreateFrame(window, "window_frame", args, n); |
103 XtManageChild(frame); |
108 XtManageChild(frame); |
104 |
109 |
105 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); |
106 UiContainerX *container = ui_box_container(obj, vbox, UI_BOX_VERTICAL); |
119 UiContainerX *container = ui_box_container(obj, vbox, UI_BOX_VERTICAL); |
107 uic_object_push_container(obj, container); |
120 uic_object_push_container(obj, container); |
108 |
121 |
109 obj->widget = toplevel; |
122 obj->widget = toplevel; |
110 nwindows++; |
123 nwindows++; |