开发者

How to make a listviewer scrollable

开发者 https://www.devze.com 2022-12-24 07:46 出处:网络
Can someone share how to make items in a ListViewer scrollable? Source code will be more helpful. Thank开发者_如何学Cs.Simply add SWT.H_SCROLL | SWT.V_SCROLL as second argument in the constructor, i.

Can someone share how to make items in a ListViewer scrollable? Source code will be more helpful.

Thank开发者_如何学Cs.


Simply add SWT.H_SCROLL | SWT.V_SCROLL as second argument in the constructor, i.e.

ListViewer v = new ListViewer(shell, SWT.H_SCROLL | SWT.V_SCROLL);

Here is a Snippet - resize the shell to be small enough, and you get scroll bars.

0

精彩评论

暂无评论...
验证码 换一张
取 消