ITEM: D5391L
Problem setting the width of a text widget in X11R5
Question:
I just upgraded my machine to 3.2.4. I now have X11R5 with Motif
version 1.2. I am now experiencing a problem with the width of text
widgets. I am setting the XmNcolumns resource to 10 spaces. If I do
not specify a font in Xdefaults then the width seems to be ok. If I
specify a font for the text widget than the width of the text widget
is set to more than twice the required width. If I divide the
XmNcolumns in half It is about right. This is a hoaky solution. I
would like to know if there is a better solution.
Could this be related to using proportional space fonts?
Thanks
Response:
The method for calculating the width on the text widget was changed.
The old method took the average width of the font times the number of
columns. The new method is calculated by the max width for the font
time the number of columns. The max width could be a very large value
for proportional spaced fonts. I suggest you either use fixed fonts or
calculate the width of the text widget in different manner.
Support Line: Problem setting the width of a text widget in X11R5 ITEM: D5391L
Dated: August 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:56
Comments or suggestions?
Contact us