3

使用firstIndent字段上的属性,我可以使段落的开头相对于标准边距缩进,这样如果换行,继续从上一行的第一个字符的左侧开始。

但是如果我为 设置一个负值firstIndent,它就没有效果。

有没有办法实现该行从左侧开始的效果,但如果它换行,后续行将缩进到右侧?

4

2 回答 2

3

你可以通过设置'leftindent'的值和'firstindent'的负值来做到这一点(注意你需要在设置leftindent时指定一个行号)

set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50
于 2013-03-08T23:06:09.010 回答
1

请注意,字段中行的“leftindent”属性仅在 LiveCode 5.5 版中引入,从 LC 5.5 开始,“firstIndent”属性现在可以应用于行以及整个字段:

set the firstIndent of line 2 of field "xyzzy" to -10
于 2013-03-18T21:56:32.980 回答