5 weeks ago
limit textarea width (Motif)
ui/motif/Grid.c | file | annotate | diff | comparison | revisions | |
ui/motif/text.c | file | annotate | diff | comparison | revisions |
--- a/ui/motif/Grid.c Wed Feb 05 23:10:09 2025 +0100 +++ b/ui/motif/Grid.c Thu Feb 06 22:03:14 2025 +0100 @@ -548,6 +548,8 @@ Dimension actual_width, actual_height; w->mywidget.sizerequest = TRUE; + //printf("sizerequest: %d x %d\n", (int)req_width, (int)req_height); + //XtWidgetGeometry request; //request.width = req_width; //request.request_mode = CWWidth;
--- a/ui/motif/text.c Wed Feb 05 23:10:09 2025 +0100 +++ b/ui/motif/text.c Thu Feb 06 22:03:14 2025 +0100 @@ -49,6 +49,7 @@ Widget parent = ctn->prepare(ctn, xargs, &n); char *name = args.name ? (char*)args.name : "textarea"; + XtSetArg(xargs[n], XmNwidth, 100); n++; Widget widget = XmCreateScrolledText(parent, name, xargs, n); XtManageChild(widget);