FACT++  1.0
Widget create_push_button ( Widget  parent,
char *  str,
long  tag 
)

Definition at line 3505 of file did.c.

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

Referenced by create_service_dialog().

3506 {
3507 Widget b;
3508 XmString xm1;
3509 Arg ar[20];
3510 int n;
3511 
3512  n = 0;
3513  xm1 = create_str(str);
3514  XtSetArg(ar[n],XmNalignment, XmALIGNMENT_CENTER); n++;
3515  XtSetArg(ar[n],XmNfontList, did_default_font); n++;
3516  XtSetArg(ar[n],XmNlabelString, xm1); n++;
3517  b = XmCreatePushButton ( parent, "button", ar, (Cardinal)n );
3518 
3519  XtManageChild(b);
3520  XmStringFree(xm1);
3521 
3522  XtAddCallback ( b, XmNactivateCallback,
3523  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3524  return(b);
3525 }
static XmFontList did_default_font
Definition: did.c:40
char str[80]
Definition: test_client.c:7
void cancel_pop_up()
XmString create_str()

+ Here is the call graph for this function:

+ Here is the caller graph for this function: