1
我有一個ComboBoxCellEditor
,用戶應該只能選擇其中的項目,但不能在組合框中編輯它們。如何使ComboBoxCellEditor只讀?
有沒有像這樣的?
new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
將這樣的伎倆:
cellEditor.setReadOnly(true);
我有一個ComboBoxCellEditor
,用戶應該只能選擇其中的項目,但不能在組合框中編輯它們。如何使ComboBoxCellEditor只讀?
有沒有像這樣的?
new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
將這樣的伎倆:
cellEditor.setReadOnly(true);
當然與創造呢?
絕對正確。 SWT.DROP_DOWN是可選的。 – PrestigeDev
@PrestigeDev是的,不確定。很高興它的工作。 – Baz