michael@.nsc.com (Michael C. Wagnitz) (03/22/91)
I've have tried both UTSL and RTFM, but I'm unable to get an Athena text widget to properly display text which has tab characters. I have tried both fixed and proportional width fonts, with no real difference. Unlike an xterm display (which does it differently, I know...), the Athena text widget seems to display tabulated text in a random fashion, indenting the first one or two lines of the text with tabs nearly correctly, but then leaving the remaining lines with less than the intended indentation. The following example illustrates the result of feeding text with tab characters to the widget (using an XtSetValues() call)... The tabulated example (with three tabs in each line) displays as follows: Field One Field Two Field Three -------------- ------------ ---------------- Entry number 1 First element Second element Entry number 2 First element Second element Entry number 3 First element Second element The same data, but with tabs previously converted to spaces, looks normal: Field One Field Two Field Three -------------- ------------ ---------------- Entry number 1 First element Second element Entry number 2 First element Second element Entry number 3 First element Second element Obviously, I hoped that the tabulated example would display like the second one does. A call to XawTextSinkSetTabs() has no effect on the result. (The widget sources appear to have been doing the SetTabs already, anyway). If anyone can offer me any suggestions, I would be most greatful. This is the last major nag left before releasing xmail 1.3, and I'd LOVE to fix it. -- Michael Wagnitz M/S D3-677 uucp: {sun|hplabs|decwrl}!nsc!berlioz!michael National Semiconductor Domain: michael@berlioz.nsc.com 2900 Semiconductor Dr. Phone: 408/721-3266 Santa Clara, CA 95052-8090