|
Antw: Canvas border blinking on resize [message #540147 is a reply to message #540033] |
Tue, 15 June 2010 07:44 |
Eclipse User |
|
|
|
Originally posted by: Ludger.Heisterkamp.gds.eu
Can't reprodce your issuse, I tried your code and everything looks fine to
me.
XP SP2, Eclipse 3.5.2
Greetings,
Ludger
>>> Jacek Kolodziejczyk<jackolo@poczta.fm> schrieb am Montag, 14. Juni 2010
um
18:05:
> 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.03120 seconds