Project: SWT
Bug 130470 [Tree] Selection-Rect changes on expanding TreeItem causes pixel corruption
Reported: 2006-03-05 14:02:06 | Status: resolved fixed

I am not sure wether this is a Windows Bug. When expanding the Root treeitem on this snippet, I can see the Selection-Rectangle expand by some pixels: public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Tree tree = new Tree(shell, SWT.BORDER); TreeItem root = new TreeItem(tree, SWT.NONE); root.setText("Root"); TreeItem child = new TreeItem(root, SWT.NONE); child.setText("Hello World"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } I am running with Manifest. Can also reproduce with M4. Ben

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java