FACT++  1.0
Widget create_service_dialog ( )

Definition at line 3429 of file did.c.

References create_label(), create_push_button(), create_str(), Curr_service_print_type, DID_SERVICE, did_small_font, MAX_POP_UPS, Subscribe10Button, SubscribeButton, and toplevel_widget.

Referenced by put_selection().

3430 {
3431 Widget fd, rc, sw, lb, rc1;
3432 XmString xm1;
3433 Arg ar[20];
3434 int n, par;
3435 unsigned long reason;
3436 
3437  n = 0;
3438  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3439  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_ANY); n++;
3440  fd = XmCreateFormDialog ( toplevel_widget, "Form", ar, (Cardinal)n );
3441  XtManageChild(fd);
3442 
3443  /* create rowcolumn */
3444  n = 0;
3445  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3446  XtSetArg(ar[n],XmNentryAlignment, XmALIGNMENT_CENTER); n++;
3447  XtSetArg(ar[n],XmNbottomAttachment, XmATTACH_FORM); n++;
3448  XtSetArg(ar[n],XmNbottomOffset, 0); n++;
3449  XtSetArg(ar[n],XmNrightAttachment, XmATTACH_FORM); n++;
3450  XtSetArg(ar[n],XmNrightOffset, 0); n++;
3451  XtSetArg(ar[n],XmNtopAttachment, XmATTACH_FORM); n++;
3452  XtSetArg(ar[n],XmNtopOffset, 0); n++;
3453  XtSetArg(ar[n],XmNleftAttachment, XmATTACH_FORM); n++;
3454  XtSetArg(ar[n],XmNleftOffset, 0); n++;
3455  rc = XmCreateRowColumn ( fd, "rowcol", ar, (Cardinal)n );
3456  XtManageChild(rc);
3457 
3458  /* create scrolled window */
3459  n = 0;
3460  XtSetArg ( ar[n], XmNwidth, 770); n++;
3461  XtSetArg ( ar[n], XmNheight, 350); n++;
3462  XtSetArg ( ar[n], XmNscrollBarDisplayPolicy, XmAS_NEEDED); n++;
3463  XtSetArg ( ar[n], XmNscrollingPolicy, XmAUTOMATIC); n++;
3464 
3465  sw = XmCreateScrolledWindow ( rc, "ScrollWin", ar, (Cardinal)n );
3466  XtManageChild ( sw );
3467 
3468  /* create label */
3469  n = 0;
3470  xm1 = create_str(" ");
3471  XtSetArg(ar[n],XmNfontList, did_small_font); n++;
3472  XtSetArg(ar[n],XmNlabelString, xm1); n++;
3473  XtSetArg(ar[n],XmNalignment, XmALIGNMENT_BEGINNING); n++;
3474  lb = XmCreateLabel ( sw, "label", ar, (Cardinal)n );
3475  XtManageChild(lb);
3476  XmStringFree(xm1);
3477  par = 1;
3478  reason = 0;
3479  create_label(lb, &par, &reason);
3480 
3481  /* create button rowcolumn */
3482  n = 0;
3483  XtSetArg(ar[n],XmNborderWidth, 0); n++;
3484  XtSetArg(ar[n],XmNentryAlignment, XmALIGNMENT_CENTER); n++;
3485  XtSetArg(ar[n],XmNorientation, XmVERTICAL); n++;
3486  XtSetArg(ar[n],XmNnumColumns, 3); n++;
3487  XtSetArg(ar[n],XmNpacking, XmPACK_COLUMN); n++;
3488  rc1 = XmCreateRowColumn ( rc, "buttons", ar, (Cardinal)n );
3489  XtManageChild(rc1);
3490  /*
3491  create_push_button(rc1,"View Standard",MAX_POP_UPS+1);
3492  create_push_button(rc1,"View Float",MAX_POP_UPS+2);
3493  create_push_button(rc1,"View Double",MAX_POP_UPS+3);
3494  */
3495  SubscribeButton = create_push_button(rc1," Subscribe (On Change) ",
3496  MAX_POP_UPS+5);
3497  Subscribe10Button = create_push_button(rc1," Subscribe (Update Rate 10 seconds) ",
3498  MAX_POP_UPS+4);
3499  create_push_button(rc1,"Dismiss",DID_SERVICE);
3501 
3502  return(fd);
3503 }
void create_label()
static XmFontList did_small_font
Definition: did.c:40
int Curr_service_print_type
Definition: did.c:14
Widget create_push_button(Widget parent, char *str, long tag)
Definition: did.c:3505
Widget Subscribe10Button
Definition: did.c:32
Widget toplevel_widget
Definition: did.h:39
XmString create_str()
Widget SubscribeButton
Definition: did.c:31

+ Here is the call graph for this function:

+ Here is the caller graph for this function: