SWT 组合调整大小下拉列表(显示更多项目)
SWT Combo resize dropdown list (show more items)
我的 SWT Combo 有很多项目,下拉列表总是同时只显示 5 个项目。 (是的,我可以上下滚动查看所有其他项目)
我希望下拉列表同时显示更多项目,例如同时10个项目。
如何制作下拉列表,同时显示更多项目?
有没有人的例子?
谢谢
约臣
调用Combo
setVisibleItemCount(int count)
方法来设置显示的项目数。
注意 JavaDoc 说:
This operation is a hint and is not supported on platforms that do not
have this concept.
因此它可能无法在所有平台上运行。
或者使用 CCombo
控件,它还有一个 setVisibleItemCount
可以在所有平台上工作。
我的 SWT Combo 有很多项目,下拉列表总是同时只显示 5 个项目。 (是的,我可以上下滚动查看所有其他项目)
我希望下拉列表同时显示更多项目,例如同时10个项目。
如何制作下拉列表,同时显示更多项目? 有没有人的例子? 谢谢 约臣
调用Combo
setVisibleItemCount(int count)
方法来设置显示的项目数。
注意 JavaDoc 说:
This operation is a hint and is not supported on platforms that do not have this concept.
因此它可能无法在所有平台上运行。
或者使用 CCombo
控件,它还有一个 setVisibleItemCount
可以在所有平台上工作。