Can you create a resizable control in SWT?

血红的双手。 提交于 2019-12-12 01:13:18

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/11723440/can-you-create-a-resizable-control-in-swt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!