Tab character & Tab amount, and setting width & alignment

For questions about using Classic.

Post » Sun Mar 27, 2011 10:59 am

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.
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Sun Mar 27, 2011 7:41 pm

[quote:tl0o5nwo]Is there a way to type the tab character ('\t') when setting text in a text box? [/quote:tl0o5nwo]
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?[/quote:tl0o5nwo]
Measure it and see.
[quote:tl0o5nwo]Is there a way to set the tab spacing amount?[/quote:tl0o5nwo]
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)[/quote:tl0o5nwo]
EditBox has an action for that: "Limit Text"
[quote:tl0o5nwo]alignment (left or right)[/quote:tl0o5nwo]
Left is default. Right is not possible without using the winapi through python.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests