您可以在SWT中创建可调整大小的控件吗? [英] Can you create a resizable control in SWT?

查看:164
本文介绍了您可以在SWT中创建可调整大小的控件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Eclipse中的SWT包。是否可以在复合控件中创建可调整大小的控件。



例如,如果我有一个我想扩展的树控件,但为了查看子树项目,我想点击并拖动树的边框调整大小,非常像 Eclipse帮助网站中的可拖动分隔符。

$ b我认为SWT Sash 是您正在寻找的。

这里是一个很好的例子,如何使用它。



编辑



刚刚发现 SashForm 更容易使用。请参阅 LINK 以获取一个很好的例子。


I am currently working with the SWT package in Eclipse. Is it possible to create a resizable control within a composite control.

For instance, if I have a tree control which I would like to expand, but in order to view the sub tree items I would like to 'click and drag' the border of the tree to resize it, much like the draggable divider in the Eclipse help website.

解决方案

I think the SWT Sash is what you are looking for.

Here is a good example on how to use it.

EDIT:

Just found that SashForm is much easier to use. See LINK for a good example.

这篇关于您可以在SWT中创建可调整大小的控件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆