我可以在draw2d中获得可滚动的工具提示吗?
我希望在draw2D 中使工具提示可滚动,就像在Eclipse 中调出“内容辅助”窗口时一样。谁能帮助我吗?
先感谢您!
I want to make the tooltip scrollable in draw2D, just like in Eclipse when you call out the Content Assist window. Can anyone help me?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未尝试过,但我认为没有理由在工具提示中使用 org.eclipse.draw2d.ScrollPane 不起作用。您可能必须将
ScrollPane
放入另一个图形中以限制其大小。否则我怀疑 ScrollPane (以及整个工具提示)将只具有其内容的首选大小 ->没有滚动。I have never tried it, but I see no reason why using a
org.eclipse.draw2d.ScrollPane
in your tooltip shouldn't work. You will probably have to put theScrollPane
into another figure to restrict its size. Otherwise I suspect theScrollPane
(and with it the whole tooltip) would just have the preferred size of its content -> no scrolling.