Bug 51081 - Tracker flickers when using setRectangles to hold it in place
Summary: Tracker flickers when using setRectangles to hold it in place
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 15:16 EST by Stefan Xenos CLA
Modified: 2004-02-05 15:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Xenos CLA 2004-02-02 15:16:40 EST
If the Tracker's setRectangles method is method is used hold the tracking
rectangle still, the rectangle will flicker during mouse movements. This is
quite noticable in the Eclipse 3.0 UI.

The following snippet demonstrates the bug (run it and move the mouse cursor
around to observe the flicker).

public class Main {
	static int counter = 0;
public static void main (String [] args) {
	Display display = new Display ();
	final Shell shell = new Shell (display);
	shell.open ();
	final Tracker tracker = new Tracker (shell, 0);
	tracker.setRectangles (new Rectangle [] {
		new Rectangle (100, 100, 400, 400),
	});
	tracker.setStippled(true);
	tracker.addControlListener(new ControlListener() {
		public void controlMoved(ControlEvent e) {
			tracker.setRectangles(new Rectangle[] {new Rectangle(100, 100, 400, 400)});
		}
		public void controlResized(ControlEvent e) {
		}
	});
	tracker.open ();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch ()) display.sleep ();
	}
	display.dispose ();
}
}
Comment 1 Grant Gayed CLA 2004-02-05 15:29:36 EST
fixed > 0205 on all platforms