154 mw = XmCreateMainWindow ( parent,
"DidMainWindow", NULL, 0 );
156 XmNresizePolicy, XmRESIZE_ANY,
162 mb = XmCreateMenuBar ( mw,
"DidMenuBar", NULL, 0 );
170 XtManageChild ( mb );
173 mf = XmCreateForm ( mw,
"DidMainForm", NULL, 0 );
175 XmNresizePolicy, XmRESIZE_NONE,
178 XtManageChild ( mf );
183 tl = XmCreateLabel ( mf,
"DidTitle", NULL, 0 );
185 XmNtopAttachment, XmATTACH_FORM,
186 XmNbottomAttachment, XmATTACH_NONE,
187 XmNleftAttachment, XmATTACH_FORM,
188 XmNrightAttachment, XmATTACH_FORM,
195 XmNshadowThickness, 0,
196 XmNhighlightThickness, 0,
198 XmNalignment, XmALIGNMENT_CENTER,
213 XmStringFree ( xms );
241 f = XmCreateForm( mf,
"ScrollForm", NULL, 0 );
245 XmNtopAttachment, XmATTACH_WIDGET,
246 XmNbottomAttachment, XmATTACH_FORM,
247 XmNleftAttachment, XmATTACH_FORM,
248 XmNrightAttachment, XmATTACH_FORM,
254 XmNshadowThickness, 2,
289 XtSetArg ( ar[n], XmNtopAttachment, XmATTACH_FORM); n++;
290 XtSetArg ( ar[n], XmNbottomAttachment, XmATTACH_FORM); n++;
291 XtSetArg ( ar[n], XmNleftAttachment, XmATTACH_FORM); n++;
292 XtSetArg ( ar[n], XmNrightAttachment, XmATTACH_FORM); n++;
293 XtSetArg ( ar[n], XmNrightOffset, 0); n++;
294 XtSetArg ( ar[n], XmNleftOffset, 0); n++;
295 XtSetArg ( ar[n], XmNbottomOffset, 0); n++;
296 XtSetArg ( ar[n], XmNtopOffset, 0); n++;
300 XtSetArg ( ar[n], XmNscrollBarDisplayPolicy, XmAS_NEEDED); n++;
302 XtSetArg ( ar[n], XmNscrollingPolicy, XmAUTOMATIC); n++;
304 sl = XmCreateScrolledWindow ( f,
"ScrollWin", ar, (Cardinal)n );
324 XtManageChild ( sl );
static XmFontList did_label_font
static XmFontList did_default_font
void create_matrix_widget()
void gui_create_main_menu(Widget mb)