Skip to main content

Text formatting inside textbox

  • November 25, 2013
  • 2 replies
  • 1 view

Dominique Sacre
Forum|alt.badge.img+2

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?

2 replies

  • November 25, 2013

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?

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.


Dominique Sacre
Forum|alt.badge.img+2

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?

Thanks, that did it.

Best regards