使用字段上的firstIndent
属性,我可以使段落的开头相对于标准边距缩进,这样,如果换行,则从上一行第一个字符的左侧开始继续。
但是,如果我将firstIndent
设置为负值,则没有任何效果。
有没有一种方法可以达到这样的效果:行从左边开始,但如果换行,后面的行会向右缩进?
发布于 2013-03-09 07:06:09
你可以通过为‘leftindent’设置一个值,为'firstindent‘设置一个负值(注意你需要在设置leftindent时指定一个行号)
set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50
发布于 2013-03-19 05:56:33
请注意,字段中行的"firstIndent“属性仅在LiveCode版本5.5中引入,并且从LC 5.5开始,"leftindent”属性现在可以应用于行以及整个字段:
set the firstIndent of line 2 of field "xyzzy" to -10
https://stackoverflow.com/questions/15299002
复制相似问题