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

Definition at line 3371 of file did.c.

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

3372 {
3373 Widget sd;
3374 XmString xm1;
3375 Arg ar[20];
3376 int n;
3377 
3378  xm1 = create_str (label);
3379  n = 0;
3380  XtSetArg(ar[n],XmNlabelFontList, did_default_font); n++;
3381  XtSetArg(ar[n],XmNbuttonFontList, did_default_font); n++;
3382  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3383  /*
3384  XtSetArg(ar[n],XmNwidth, 450); n++;
3385  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_NONE); n++;
3386  */
3387  XtSetArg(ar[n],XmNselectionLabelString, xm1); n++;
3388  sd = XmCreatePromptDialog ( toplevel_widget, "Prompt", ar, (Cardinal)n );
3389 
3390  XmStringFree(xm1);
3391 
3392  XtAddCallback ( sd, XmNcancelCallback,
3393  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3394  XtAddCallback ( sd, XmNokCallback,
3395  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3396 
3397  return(sd);
3398 }
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: