NSTextField 弹跳截断的文本而不是换行
我想知道是否有一种简单的方法可以“弹跳”或滚动文本太长而无法显示的 NSTextField
。
例如:
-----------------------------
<-- scroll | This is a rather large pi | ..ece of text!
-----------------------------
所以在这个例子中,文本将滚动到末尾,显示消息的其余部分,然后返回到它将停留的开头;基本上让用户看到所有文本的峰值。
-----------------------------
This is a ra.. | ther large piece of text! | --> then scroll back to beginning.
-----------------------------
在 iPhone 上通话时也可以找到相同的动画,如果人名太大而无法容纳,则会以这种方式滚动显示。
I was wondering if there was a simple way to "bounce" or scroll an NSTextField
with text thats too long to display.
For Example:
-----------------------------
<-- scroll | This is a rather large pi | ..ece of text!
-----------------------------
So in this example, the text would scroll to the end, showing the rest of the message, then back to the beginning where it will rest; basically giving the user a peak at all of the text.
-----------------------------
This is a ra.. | ther large piece of text! | --> then scroll back to beginning.
-----------------------------
The same animation can also be found on the iPhone when in a call, the Persons name will scroll in this manner if it is too large to fit on the display.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论