Canvas border blinking on resize [message #540033] |
Mon, 14 June 2010 12:05  |
Eclipse User |
|
|
|
Canvas border blinks when resizing if at least on of the scroll bars is present.
Windows XP, SP2. Eclipse 3.5.0
Is it a bug or is there a way to get rid of the blinking? (SWT.DOUBLE_BUFFERED does not help)
Here is the snippet:
public class SimpleCanvas {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout());
Canvas canvas = new Canvas(shell, SWT.BORDER | SWT.V_SCROLL );
canvas.setLayoutData(new GridData(GridData.FILL_BOTH));
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03554 seconds