SWT Combo and CCombo as CellEditor

好久不见. 提交于 2019-12-10 11:35:48

问题


Why is the last item blank? I only have 3 items (it's a tri-state boolean editor).


Can a CCombo achieve this solid Combo look and feel?


As a combo cell editor, I would prefer the regular Combo, BUT:
Can this Combo be used as CellEditor, while fitting the table row height? (maybe making the Font smaller?)


回答1:


The default visible item count for CCombo is 5, try calling setVisibleItemCount(3).

CCombo does not support much customization. It always sets the same colors for the list and the text for example.

The look of Combo varies a lot between platforms, the Mac version might look odd in a table column. Combo does support setting the font but I don't know if that would work.



来源:https://stackoverflow.com/questions/20078512/swt-combo-and-ccombo-as-celleditor

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