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

Definition at line 3400 of file did.c.

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

Referenced by create_kill_confirmation().

3401 {
3402 Widget sd;
3403 XmString xm1;
3404 Arg ar[20];
3405 int n;
3406 
3407  xm1 = create_str (label);
3408  n = 0;
3409  XtSetArg(ar[n],XmNlabelFontList, did_default_font); n++;
3410  XtSetArg(ar[n],XmNbuttonFontList, did_default_font); n++;
3411  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3412  /*
3413  XtSetArg(ar[n],XmNwidth, 450); n++;
3414  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_NONE); n++;
3415  */
3416  XtSetArg(ar[n],XmNmessageString, xm1); n++;
3417  sd = XmCreateQuestionDialog ( toplevel_widget, "Question", ar, (Cardinal)n );
3418 
3419  XmStringFree(xm1);
3420 
3421  XtAddCallback ( sd, XmNcancelCallback,
3422  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3423  XtAddCallback ( sd, XmNokCallback,
3424  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3425 
3426  return(sd);
3427 }
void ok_pop_up()
static XmFontList did_default_font
Definition: did.c:40
Widget toplevel_widget
Definition: did.h:39
void cancel_pop_up()
XmString create_str()

+ Here is the call graph for this function:

+ Here is the caller graph for this function: