Highlighted
Absent Member.
Absent Member.
883 views

Text formatting inside textbox

Jump to solution

Im reading an indexed file with visual cobol and displaying its data in a multiline textbox.

The problem is that every field has a different size (not in the pic definition, but the "letters size"), and that completly disrupts the text formatting.

See image below:

What's the best solution for this problem?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Contributor.
Contributor.

RE: Text formatting inside textbox

Jump to solution

Your problem is that you're using a "proportional" font, where, for example, the letter W is four times wider than the letter I or a space.

Try a monospace font like Courier or Lucida Console.  Then every character, including spaces, will be the same width.  Then your columns should line up very nicely.

View solution in original post

0 Likes
2 Replies
Highlighted
Contributor.
Contributor.

RE: Text formatting inside textbox

Jump to solution

Your problem is that you're using a "proportional" font, where, for example, the letter W is four times wider than the letter I or a space.

Try a monospace font like Courier or Lucida Console.  Then every character, including spaces, will be the same width.  Then your columns should line up very nicely.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Text formatting inside textbox

Jump to solution

Thanks, that did it.

Best regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.