messageArgs, XtNumber(messageArgs));
XtSetArg(args[0], XtNtop, XtChainTop);
XtSetArg(args[1], XtNbottom, XtChainTop);
- XtSetValues(messageWidget, args, 2);
- XtSetArg(args[0], XtNheight, &textHeight); // [HGM] get height for use in generic popup
- XtGetValues(messageWidget, args, 1);
+ XtSetValues(messageWidget, args, 3);
widgetList[j++] = boardWidget =
XtCreateWidget("board", widgetClass, formWidget, boardArgs,
fprintf(stderr, _("%s: messageWidget geometry error %d %d %d %d %d\n"),
programName, gres, w, h, wr, hr);
}
+ textHeight = hr; // [HGM] save height for use in generic popup
/* !! end hack */
XtSetArg(args[0], XtNleft, XtChainLeft); // [HGM] glue ends for good run-time sizing
XtSetArg(args[1], XtNright, XtChainRight);
break;
case CheckBox:
if(!currentCps) option[i].value = *(Boolean*)option[i].target;
- j=0;
+ j=0; // space holder
XtSetArg(args[j], XtNfromVert, last); j++;
XtSetArg(args[j], XtNwidth, 10); j++;
+ XtSetArg(args[j], XtNheight, textHeight-22); j++;
+ XtSetArg(args[j], XtNleft, XtChainLeft); j++;
+ XtSetArg(args[j], XtNright, XtChainLeft); j++;
+ XtSetArg(args[j], XtNborderWidth, 0); j++;
+printf("%d\n",textHeight);
+ if(textHeight < 24) dialog = last; else
+ dialog = XtCreateManagedWidget(" ", labelWidgetClass, form, args, j);
+ j=0;
+ XtSetArg(args[j], XtNfromVert, dialog); j++;
+ XtSetArg(args[j], XtNwidth, 10); j++;
XtSetArg(args[j], XtNheight, 10); j++;
XtSetArg(args[j], XtNleft, XtChainLeft); j++;
XtSetArg(args[j], XtNright, XtChainLeft); j++;