Community
Participate
Working Groups
Hello, With the following code: ComboViewer comboViewer = new ComboViewer(parentComposite, SWT.READ_ONLY); Combo combo = comboViewer.getCombo(); combo.setBackground(new Color(parentComposite.getDisplay(), 0, 255, 0)); The background color of the Combo is not taken into account. The SWT.READ_ONLY state doesn't change anything. Also note that combo.setForeground(new Color(parentComposite.getDisplay(), 0, 255, 0)); is working. Is there a solution to that problem ? (another than using a CCombo) Could it be fixed ? Best regards,
Can you attach a snippet to reproduce and screenshot? Also please share the gtk version and theme used. One issue with combo background has already been fixed in 4.17 stream via bug 489035.
Created attachment 283343 [details] 564406-TestProject An eclipse plug-in test project to reproduce the issue. Just import it in Eclipse, launch an Eclipse Application Configuration. Then select, the "ComboViewer Test Menu > ComboViewer Test Command". A dialog will appear with a ComboViewer showing the problem. Thanks
- Theme used: classic one - GTK: no GTK, macOS user here
Setting the OS to MacOS.
This is a current limitation of Combo on Mac, NSComboBox and NSPopUpButton don't provide direct methods to set the background color.