当控件中的文本太大而无法显示时,文本控件的 SWT/JFace 工具提示
我知道这可以相当容易地实现,但我必须为此使用标准功能。 我需要在文本字段上显示工具提示,但仅当文本字段中的文本太长而无法在字段中显示时。表和树在调整列大小时具有此功能,但我没有找到文本字段的任何类似功能。
我也没能在 Eclipse 中找到这个功能,所以我猜它不是一个标准功能。 请证明我错了:)。
提前致谢。
I know this can be implemented fairly easily but I must use a standard functionality for this.
I need a tooltip to be shown on a text field but only when the text in the text field is to long to be displayed in the field. Tables and Tree's have this functionality when resizeing columns but I didn't find anything similar for text fields.
I didn't manage to find this functionality in Eclipse either so I'm guessing it's not a standard functionality.
Please prove me wrong:).
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“标准功能”是什么意思?将
modifyListener
添加到Text
实例是(imo)标准公平的。这是我的方法
What does it mean "Standard functionality"..? Adding
modifyListener
toText
instance is (imo) standard fair enough.Here's my approach