Skip to main content


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 12:54
Paul Morris is currently offline Paul MorrisFriend
Messages: 8
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: Fri, 20 January 2012 04:04]

Report message to a moderator

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


Current Time: Wed Apr 24 23:51:29 GMT 2024

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

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

Back to the top