Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Canvas border blinking on resize
Canvas border blinking on resize [message #540033] Mon, 14 June 2010 16:05 Go to next message
Jacek Kolodziejczyk is currently offline Jacek Kolodziejczyk
Messages: 37
Registered: July 2009
Member
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();
	}
}
Antw: Canvas border blinking on resize [message #540147 is a reply to message #540033] Tue, 15 June 2010 07:44 Go to previous messageGo to next message
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();
> }
> }
Re: Antw: Canvas border blinking on resize [message #540152 is a reply to message #540147] Tue, 15 June 2010 08:07 Go to previous messageGo to next message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
same here

---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: Antw: Canvas border blinking on resize [message #540163 is a reply to message #540152] Tue, 15 June 2010 08:34 Go to previous message
Jacek Kolodziejczyk is currently offline Jacek Kolodziejczyk
Messages: 37
Registered: July 2009
Member
Maybe it's shows on some graphics cards only then. I have ATI Radeon X1600. The effect looks like the border painting is not buffered.
Previous Topic:New to SWT programming
Next Topic:How to prevent resize event to pass to a child
Goto Forum:
  


Current Time: Fri Oct 31 17:25:36 GMT 2014

Powered by FUDForum. Page generated in 0.02002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software