eclipse 的可视化编辑器

发布于 2024-08-31 19:00:24 字数 61 浏览 3 评论 0原文

我创建了一个代表组合的类。我希望这个组合占据所有可用空间。我怎样才能做到这一点并让它在设计器中显示完整尺寸?

I made a class that represents a composite. I want this composite to take up all available space. How can I do this and have it show up full size in the designer?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

殤城〤 2024-09-07 19:00:24

您应该在父组合中选择例如 FillLayout。

另一种方法是选择 GridLayout,然后在复合材料中设置 GridData 以在所有父复合材料上展开。

您可以在此处阅读有关 SWT 布局的更多信息:

http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html

You should choose in your parent composite for example FillLayout.

Another way is to choose GridLayout and then set up GridData in your composite to expand on all parent composite.

You can read more about layouts in SWT here:

http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html

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