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

Definition at line 3310 of file didMarkus.c.

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

3311 {
3312 Widget sd;
3313 XmString xm1;
3314 Arg ar[20];
3315 int n;
3316 
3317  xm1 = create_str (label);
3318  n = 0;
3319  XtSetArg(ar[n],XmNlabelFontList, did_default_font); n++;
3320  XtSetArg(ar[n],XmNbuttonFontList, did_default_font); n++;
3321  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3322  /*
3323  XtSetArg(ar[n],XmNwidth, 450); n++;
3324  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_NONE); n++;
3325  */
3326  XtSetArg(ar[n],XmNselectionLabelString, xm1); n++;
3327  sd = XmCreatePromptDialog ( toplevel_widget, "Prompt", ar, n );
3328 
3329  XmStringFree(xm1);
3330 
3331  XtAddCallback ( sd, XmNcancelCallback,
3332  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3333  XtAddCallback ( sd, XmNokCallback,
3334  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3335 
3336  return(sd);
3337 }
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: