Project: SWT
Bug 47245 setEditable() method for Combo or CCombo
Reported: 2003-11-21 11:38:46 | Status: resolved fixed

At present it is not possible to change a Combo or CCombo from being editable to non-editable or vica-versa once it has been created. This can only be set when the Combo/CCombo is created by using the SWT.READ_ONLY constant. I have an application where I would like to change the editability of a CCombo depending on the selection in other widgets. It seems that I will have to create a new CCombo each time and copy the content across. It would be much more convenient to have a setEditable() method.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java