Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Simple Example of Drawing Rectangle with Mouse
Simple Example of Drawing Rectangle with Mouse [message #780805] Thu, 19 January 2012 07:54
Paul Morris is currently offline Paul Morris
Messages: 9
Registered: December 2011
Junior Member
I've seen PaintExample under the SWT examples which showcases a lot of cool stuff but the code is quite complex (as would be expected). I'm looking for a simple, stripped-down example of just drawing one rectangle on a screen with the start point of the rectangle being where the mouse down occurred and the rectangle outline following the mouse throughout the drag motion. Same behavior as the rectangle drawing tool in the PaintExample plugin just isolated. Can anyone point me to some code?

[Updated on: Thu, 19 January 2012 23:04]

Report message to a moderator

Previous Topic:Accessibility for combo's and checkbox
Next Topic:Canvas overlaying Shell
Goto Forum:
  


Current Time: Thu Jul 24 06:47:17 EDT 2014

Powered by FUDForum. Page generated in 0.01758 seconds