Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LiveCode negative "firstIndent" - or other way to achieve the effect ("hanging indent")?

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?

like image 690
Ben Rubinstein Avatar asked Dec 07 '25 19:12

Ben Rubinstein


2 Answers

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
like image 135
Alex Tweedly Avatar answered Dec 11 '25 20:12

Alex Tweedly


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
like image 37
mwieder Avatar answered Dec 11 '25 20:12

mwieder