Community
Participate
Working Groups
build I20030710 If you run the following code, the text field of the CCombo has a flashing caret. It should not, since it is READ_ONLY. Please let me know if there is a workaround. public class CComboTest { public static void main(String[] args) { String[] texts = { "Item 1 abcd", "Item 2 efg", "Item 3 hi", "Item 4 abcd", "Item 5 efg", "Item 6 hi", "Item 7 abcd", "Item 8 efg", "Item 9 hi" }; Display display = new Display(); Shell shell = new Shell(display); CCombo combo = new CCombo(shell, SWT.READ_ONLY); combo.setItems(texts); combo.setSize(combo.computeSize(200, SWT.DEFAULT)); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
Compare with Combo. When it's READ_ONLY, the text field is fully selected and has a focus rectangle around the whole area, but there is no caret.
There is no strict requirement that a CCombo look or behave like a native combo.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.