user-interface - LiveCode 负 "firstIndent"- 或其他方式来实现效果 ("hanging indent")?

标签 user-interface textfield text-alignment livecode

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

但是如果我为 firstIndent 设置负值,则没有效果。

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

最佳答案

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

set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50

关于user-interface - LiveCode 负 "firstIndent"- 或其他方式来实现效果 ("hanging indent")?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15299002/

相关文章:

C# 和方向键

java - 如何在 Eclipse 中创建自定义 GUI 控件以用于 Android 应用程序布局?

ios - UITextField 多行

html - 有没有最好的方法来证明 h1 文本与其包含的 div 一致?

Jekyll 右对齐文本

java - 将事件传递给父级

dart - 在 Flutter 中更改 TextField 装饰 onFocus

cocoa - 选择按下选项卡时文本字段循环的顺序

ios - 在ios sdk中将标签文本显示为段落

javascript - jQuery ui 自动完成获取其他功能中的选定项目