/*
** Generated Code
*/

Widget errorshell = (Widget) NULL;
Widget errorform = (Widget) NULL;
Widget errortext = (Widget) NULL;
Widget errorbutton = (Widget) NULL;



void create_errorshell (parent)
Widget parent;
{
	Display *display = XtDisplay ( parent );
	Widget children[3];      /* Children to manage */
	Arg al[64];                    /* Arg List */
	register int ac = 0;           /* Arg Count */
	char from_s [256];             /* For resource conversion */
	XrmValue from_value, to_value; /* ditto */
	XtPointer tmp_value;             /* ditto */
	int fg, bg;                    /* colour values for pixmaps */ 
	XmString *list_items;          /* For list items */
	int list_item;                 /* Index for list_items */
	Atom *atom_list;               /* For Drop Site targets */
	XmString xmstrings[16];    /* temporary storage for XmStrings */
	Widget widget21 = (Widget)NULL;
	Widget widget24 = (Widget)NULL;
	Widget widget25 = (Widget)NULL;

	XtSetArg(al[ac], XmNallowShellResize, TRUE); ac++;
	XtSetArg(al[ac], XmNtitle, "errors"); ac++;
	errorshell = XmCreateDialogShell ( parent, "errorshell", al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNautoUnmanage, FALSE); ac++;
	XtSetArg(al[ac], XmNdialogType, XmDIALOG_TEMPLATE); ac++;
	widget21 = XmCreateMessageBox ( errorshell, "widget21", al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNwidth, 243); ac++;
	XtSetArg(al[ac], XmNheight, 127); ac++;
	XtSetArg(al[ac], XmNautoUnmanage, TRUE); ac++;
	errorform = XmCreateForm ( widget21, "errorform", al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNlabelType, XmPIXMAP); ac++;
	widget24 = XmCreateLabel ( errorform, "widget24", al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNforeground, &fg ); ac++;
	XtSetArg(al[ac], XmNbackground, &bg ); ac++;
	XtGetValues(widget24, al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNlabelPixmap, XmGetPixmap ( XtScreen ( widget24 ), "/usr/xd/release/demos/greptool/xm_error.bm", fg, bg )); ac++;
	XtSetValues ( widget24,al, ac );
	ac = 0;
	XtSetArg(al[ac], XmNcolumns, 26); ac++;
	XtSetArg(al[ac], XmNeditable, FALSE); ac++;
	XtSetArg(al[ac], XmNresizeHeight, TRUE); ac++;
	XtSetArg(al[ac], XmNresizeWidth, TRUE); ac++;
	XtSetArg(al[ac], XmNeditMode, XmMULTI_LINE_EDIT); ac++;
	XtSetArg(al[ac], XmNrows, 5); ac++;
	errortext = XmCreateScrolledText ( errorform, "errortext", al, ac );
	ac = 0;
	widget25 = XtParent ( errortext );

	xmstrings[0] = XmStringCreateLtoR("OK", (XmStringCharSet)XmFONTLIST_DEFAULT_TAG);
	XtSetArg(al[ac], XmNlabelString, xmstrings[0]); ac++;
	errorbutton = XmCreatePushButton ( widget21, "errorbutton", al, ac );
	ac = 0;
	XmStringFree ( xmstrings [ 0 ] );
	XtSetArg(al[ac], XmNdefaultButton, errorbutton); ac++;
	XtSetValues ( widget21,al, ac );
	ac = 0;

	XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
	XtSetArg(al[ac], XmNtopOffset, 5); ac++;
	XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
	XtSetArg(al[ac], XmNleftOffset, 5); ac++;
	XtSetValues ( widget24,al, ac );
	ac = 0;

	XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
	XtSetArg(al[ac], XmNtopOffset, 5); ac++;
	XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
	XtSetArg(al[ac], XmNbottomOffset, 5); ac++;
	XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
	XtSetArg(al[ac], XmNleftOffset, 5); ac++;
	XtSetArg(al[ac], XmNleftWidget, widget24); ac++;
	XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
	XtSetArg(al[ac], XmNrightOffset, 5); ac++;
	XtSetValues ( widget25,al, ac );
	ac = 0;
	XtManageChild(errortext);
	children[ac++] = widget24;
	XtManageChildren(children, ac);
	ac = 0;
	children[ac++] = errorform;
	children[ac++] = errorbutton;
	XtManageChildren(children, ac);
	ac = 0;
}

