FACT++  1.0
Widget create_question_dialog ( char *  label,
long  tag 
)

Definition at line 3339 of file didMarkus.c.

References cancel_pop_up(), create_str(), did_default_font, ok_pop_up(), and toplevel_widget.

Referenced by create_kill_confirmation().

3340 {
3341 Widget sd;
3342 XmString xm1;
3343 Arg ar[20];
3344 int n;
3345 
3346  xm1 = create_str (label);
3347  n = 0;
3348  XtSetArg(ar[n],XmNlabelFontList, did_default_font); n++;
3349  XtSetArg(ar[n],XmNbuttonFontList, did_default_font); n++;
3350  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3351  /*
3352  XtSetArg(ar[n],XmNwidth, 450); n++;
3353  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_NONE); n++;
3354  */
3355  XtSetArg(ar[n],XmNmessageString, xm1); n++;
3356  sd = XmCreateQuestionDialog ( toplevel_widget, "Question", ar, n );
3357 
3358  XmStringFree(xm1);
3359 
3360  XtAddCallback ( sd, XmNcancelCallback,
3361  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3362  XtAddCallback ( sd, XmNokCallback,
3363  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3364 
3365  return(sd);
3366 }
void ok_pop_up()
void cancel_pop_up()
static XmFontList did_default_font
Definition: didMarkus.c:40
Widget toplevel_widget
Definition: did.h:39
XmString create_str()

+ Here is the call graph for this function:

+ Here is the caller graph for this function: