【发布时间】:2013-03-08 16:41:58
【问题描述】:
使用字段上的firstIndent 属性,我可以使段落的开头相对于标准边距缩进,这样如果换行,则继续从上一行的第一个字符的左侧开始。
但是如果我给firstIndent设置一个负值,它就没有效果了。
有没有办法实现行从左边开始的效果,但是如果换行了,后面的行会向右缩进?
【问题讨论】:
标签: user-interface textfield text-alignment livecode
使用字段上的firstIndent 属性,我可以使段落的开头相对于标准边距缩进,这样如果换行,则继续从上一行的第一个字符的左侧开始。
但是如果我给firstIndent设置一个负值,它就没有效果了。
有没有办法实现行从左边开始的效果,但是如果换行了,后面的行会向右缩进?
【问题讨论】:
标签: user-interface textfield text-alignment livecode
您可以通过为“leftindent”设置一个值,为“firstindent”设置一个负值来做到这一点 (注意设置leftindent时需要指定行号)
set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50
【讨论】:
请注意,字段中行的“leftindent”属性仅在 LiveCode 5.5 版中引入,从 LC 5.5 开始,“firstIndent”属性现在可以应用于行以及整个字段:
set the firstIndent of line 2 of field "xyzzy" to -10
【讨论】: