3 * Rob Zimmermann. All rights reserved.
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
13 static const char sccsid
[] = "$Id: m_prompt.c,v 8.4 1996/12/11 20:58:24 bostic Exp $ (Berkeley) $Date: 1996/12/11 20:58:24 $";
17 #include <X11/Intrinsic.h>
18 #include <Xm/MessageB.h>
24 void vi_fatal_message( parent
, str
)
28 Widget db
= XmCreateErrorDialog( parent
, "Fatal", NULL
, 0 );
29 XmString msg
= XmStringCreateSimple( str
);
31 XtVaSetValues( XtParent(db
),
36 XmNmessageString
, msg
,
39 XtAddCallback( XtParent(db
), XmNpopdownCallback
, __vi_cancel_cb
, 0 );
41 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_CANCEL_BUTTON
) );
42 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_HELP_BUTTON
) );
44 __vi_modal_dialog( db
);
50 void vi_info_message( parent
, str
)
54 static Widget db
= NULL
;
55 XmString msg
= XmStringCreateSimple( str
);
58 db
= XmCreateInformationDialog( parent
, "Information", NULL
, 0 );
60 XtVaSetValues( XtParent(db
),
61 XmNtitle
, "Information",
65 XmNmessageString
, msg
,
68 XtAddCallback( XtParent(db
), XmNpopdownCallback
, __vi_cancel_cb
, 0 );
70 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_CANCEL_BUTTON
) );
71 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_HELP_BUTTON
) );
73 __vi_modal_dialog( db
);