Avatar

Correct answer by
Level 10

Hi,

If the instructions are fixed and will not change at runtime, why not use a Text object, instead of the TextField object? This way you can just type in the instructions directly into LC Designer.

If you are going with a TextField object, then the default (Object > Value palette) can accept line returns, just hold Control and hit Return and this will give you a new line. However type this is a single line view will be painful. You could type it in Word and then paste it into the Default. It should honour the carriage returns.

Again, if running with the TextField object, you can use a script in the docReady event:

this.rawValue = "This is a very long set of instructions.\n\nPlease read carefully."; 

Note that \n will give you a new line.

Havving said all that I would use the Text object for static text.

Good luck,

Niall

View solution in original post