3

Using the firstIndent property on a field, I can make the start of a paragraph indent relative to the standard margin, so that if the line wraps, the continuation starts to the left of the first character on the line above.

But if I set a negative value for firstIndent, it has no effect.

Is there a way to achieve the effect that the line starts to the left, but if it wraps, subsequent lines are indented over to the right?

2 Answers2

3

You can do that by setting a value for 'leftindent", and negative value for 'firstindent' (note you need to specify a line number when setting leftindent)

set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50
Alex Tweedly
  • 114
  • 1
1

Note that the "leftindent" property of lines in a field was only introduced in LiveCode version 5.5, and that as of LC 5.5 the "firstIndent" property can now be applied to lines as well as entire fields:

set the firstIndent of line 2 of field "xyzzy" to -10
mwieder
  • 231
  • 2
  • 6
  • Thanks Mark - that'll be my excuse for not knowing about it! How do firstIndent and leftIndent interact if they can both be applied to a line - do they just cancel each other out? – Ben Rubinstein Mar 20 '13 at 08:54