Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Rubberbanding without Tracker(setXORMode() broke in the latest SWT update)
Rubberbanding without Tracker [message #1076145] Tue, 30 July 2013 19:57
Mark Fenbers is currently offline Mark FenbersFriend
Messages: 64
Registered: July 2009
Location: Ohio, USA

I use gc.setXORMode(true) to implement a rubberbanding shape similar to how Tracker behaves (except that Tracker uses a rectangle, but my shape is more complex). My use of setXORMode worked fine until last week when I upgraded to Kepler (and corresponding SWT update).

I know gc.setXORMode() is deprecated but I believe that I have no other choice than to use it. Perhaps the underlying method of setXORMode() got removed and broke my rubberbanding feature.

My question is, What can I use to non-destructively draw over existing features on my canvas? Tracker still works as intended, so what does it use if gc.setXORMode no longer works? I need the same type of behavior but with a shape that isn't a rectangle.

Previous Topic:"IBM Notes Browser Plugin" used in SWT Browser crashes
Next Topic:Resolving Import Variable in Java Templates
Goto Forum:

Current Time: Sun Apr 30 05:47:13 GMT 2017

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

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