我可以在draw2d中获得可滚动的工具提示吗?

发布于 2024-12-26 21:03:54 字数 75 浏览 2 评论 0原文

我希望在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃不饱 2025-01-02 21:03:54

我从未尝试过,但我认为没有理由在工具提示中使用 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 the ScrollPane into another figure to restrict its size. Otherwise I suspect the ScrollPane (and with it the whole tooltip) would just have the preferred size of its content -> no scrolling.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文