Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 Build Identifier: M20090917-0800 Bug 145837 was closed with a workaround. This is not acceptable for RCP-development with Eclipse SWT, because all RCP-projects using the flat-view have to find the bug and consider it. Reproducible: Always
Not sure I understand the problem, if you create ccombo with SWT.BORDER it has border, if you don't create ccombo with SWT.BORDER it doesn't have border. am i missing something simple ?
With Windows XP, I will either have a problem with the default- or with the classic-design theme. If I create a CCombo with SWT.BORDER it has a double border (looking wrong) in the classic- and a single border in the default-design. If I create a CCombo without SWT.BORDER it has a single border in the classic- and no border (looking wrong) in the default-design. If I use a Combo (not CCombo), I do not get the flat-look in the classic design. I do not know if the problem is reproducible on later Windows versions.
Created attachment 154653 [details] SWT_Style_Windows_Classic_vs_XP.gif Comparison of SWT-Combos with the two Windows styles: Windows Classic: CCombo with border=false and flat is optimal WindowsXP-Style: CCombo with border=true and flat is optimal Problem: There is not one configuration, that looks "good" in both styles.
Works for me: public static void main (String[] args) { Display display = new Display(); final Shell shell = new Shell( display ); shell.setLayout(new GridLayout(1, true)); CCombo cc = new CCombo(shell, SWT.NONE); cc.setText("SWT.NONE"); cc = new CCombo(shell, SWT.FLAT); cc.setText("SWT.FLAT"); cc = new CCombo(shell, SWT.BORDER); cc.setText("SWT.BORDER"); cc = new CCombo(shell, SWT.BORDER | SWT.FLAT); cc.setText("SWT.BORDER | SWT.FLAT"); shell.pack(); shell.open(); while( !shell.isDisposed() ) { if( !display.readAndDispatch() ) display.sleep(); } display.dispose(); } What version of Eclispe are you running ? Can you try with HEAD: http://www.eclipse.org/swt/cvs.php
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.