0 Favourites

Tab character & Tab amount, and setting width & alignment

This forum is currently in read-only mode.
  • Is there a way to type the tab character ('\t') when setting text in a text box?

    How many spaces is this tab? Is there a way to set the tab spacing amount?

    Also, is there a way to set the width (eg. 4 spaces) and alignment (left or right) for a number which the text box is writing?

    Note that I'm not referring to the alignment (whether horizontal or vertical) of the text box object as a whole. I'm referring to individual values (whether they are numbers or text/strings) that are part of a larger group of text in this text box, and how to format the output.

    Thanks.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • [quote:tl0o5nwo]Is there a way to type the tab character ('\t') when setting text in a text box?

    Two ways come to mind:

    1. Type tab in Notepad and copy/paste it over.

    2. Use the python expression: python("'one\ttwo'")

    [quote:tl0o5nwo]How many spaces is this tab?

    Measure it and see.

    [quote:tl0o5nwo]Is there a way to set the tab spacing amount?

    You can do this manually by using a bunch of spaces instead of tab.

    [quote:tl0o5nwo]Also, is there a way to set the width (eg. 4 spaces)

    EditBox has an action for that: "Limit Text"

    [quote:tl0o5nwo]alignment (left or right)

    Left is default. Right is not possible without using the winapi through python.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)