Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » drawing an image over different composites
drawing an image over different composites [message #462450] Wed, 12 October 2005 12:43 Go to next message
Eclipse UserFriend
Originally posted by:

I try to find a way to display an image over components of a shell. I've
got a shell, in this shell are different composites which contain
different components like "Text", "Canvas", "Label". So, I'd like to put
on this shell two little images at given positions so that they are
visible, without removing what is below. What should I do? Is there a way
to easily popup an image?

Re: drawing an image over different composites [message #462465 is a reply to message #462450] Wed, 12 October 2005 15:49 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Best way is to create a Shell with POPUP (I think it's POPUP) styling and add a repaint listener. Unfortunately, you're regular Shell looses focus that way. You could also place Canvas(s) in various places throughout your Shell (ie wherever you want an image) and then add paint listeners to those. As for drawing the *same* image, splitting it over different canvases, you'll have to do the transforms yourself (or use the Advanced Graphics API, not sure if it can do what you want or not) and paint the result in the repaint listeners.
Previous Topic:Problems Opening GEF Editor: Migration from 3.1 M6->3.1.1
Next Topic:How to resize widgets?
Goto Forum:

Current Time: Sat Sep 19 16:47:36 GMT 2020

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

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

Back to the top