Lining up text in a display object of some type

Using a CourierNew Bold non-proportional font.I want to put this on in some display object: Note despite how they look here, the are properly lined up in the formula box of the text display object.

A 13 F 3213 K 11112 P 3212 U 1113 Z 321113
B 3211 G 32113 L 212 Q 11113 V 11111
C 1112 H 113 M 211 R 323 W 2112
D 213 I 322 N 23 S 112 X 321111
E 31 J 321112 O 22 T 12 Y 2113

I tried using a label object- because the text just for reference, no actions required.

I couldn’t get it to line up in the label box.

I tried a textdisplay object and though the field are aligned property in the Formula Box, they don’t display that way - columns are off.

I tried both spacing the “columns” with tabs or just using the space bar. I’m using a CourierNew Bold non-proportional font.

The columns were off either way. Sometimes it appeared as if a period “.” was added at the end of one of the numbers and I tabbed or spaced. I’d just delete it.

If you wanted to display that listing above, what text object would you use and how would you get the columns to line up?

I do like the background set to sort of a cream to light tan color (EBE2AA) and the TextDisplay object will do that. I couldn’t get a background (other than the form background color), using the just the text label object.

I could just break the above into “column” chunks in separate text objects and align them as desired.

Is this what you are looking for?

I copied the text out of your post and pasted it into a Text Display object. Looks like the characters are lined up to me.

If you wanted actual columns of figures, I would suggest putting tabs where you want column breaks. Then use either a Text List, or use a Text Display object with tabs and Rich Text. Then you could use any font.

Thank you Jim - Tab Stops for the win. I’ll jump right on it in the morning.

Just a note that this (in the documentation) does not display the < in red.


For example, this example will display a red < character, using the current font and text size.

richtextdisplay("Here is another way to insert the <char:x3C::FF0000> character.")

Maybe this was supposed to be “pencil”

richtextdisplay("##Pancil.png")

It did not display an image with either spelling but the Help seems to indicate it should already be in the System or Panorama App.

This gives a parsing error - looks like it needs a " in front of $399.99":

richtextdisplay("<tabs:100c,300d>"+
    "<ul>Option</ul>"+tab()+"<ul>Price</ul>"+cr()+
    "Deluxe"+tab()+"$199.99"+cr()+
    "Ultimate"+tab()+$399.99")

This is missing a parenthesis on the end:

richtextdisplay("<tag:(((,)))>(((color:00FF00)))some green text (((tag)))<color:FF0000>some red text"

And when added, it doesn’t show the text in green or red

Which is all probably just syntax stuff … so many characters, so many keystrokes … But what power.

I modified my display to follow examples and tried this:

richtextdisplay(“<tabs:10, 20, 30, 40, 50, 60>”+ “A 13” + tab() + “F 3213” + tab() + “K 11112” + tab() + “P 3212” + tab() + “U 1113” + tab() + “Z 321113” + cr() +

“B 3211” + tab() + " G 32113" + tab() + “L 212” + tab() + “Q 11113” + tab() +
“V 11111” + cr() +

“C 1112” + tab() + “H 113” + tab() +
“M 211” + tab() + “R 323” + tab() +
“W 2112” + cr() +

“D 213” + tab() + “I 322” + tab() + “N 23” + tab() + “S 112” + tab() + “X 321111” + cr() +

“E 31” + tab() + “J 321112” + tab() +
“O 22” + tab() + “T 12” + tab() +
“Y 2113”)

The display shows: I can’t show the error in this comment box - I’ll take a picture

CleanShot 2025-02-24 at 17.35.15

Don’t use the richtextdisplay( function. Instead, enable Rich Text with the checkbox.

Ok, I see what you did. You checked the box, but then you also used the richtextdisplay( function. Just use one or the other, not both. My advice would be to check the box and forget about the function.

You’re right, there’s a documentation mistake. It should be 0x, not just x. So

<char:0x3C::FF0000>

will work.

Yes, somehow I must have fallen into the richtextdisplay universe while looking for examples. Everything is lined up now. I had to review that 10 tab numbers are not character positions but need to be base on 72 points per inch.

Once I took out the richtextdisplay(…) and replaced
“<tabs:10, 20, 30, 40, 50, 60>”
with
“<tabs:72, 144, 216, 288, 360, 432>”
things started cook’n with gas.

Success!