Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » overlay for shell/composite?
overlay for shell/composite? [message #518224] Wed, 03 March 2010 14:18 Go to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello,

I would like to display some lines on a composite, depending on the
structure of the used layoutmanager. E.g. lines around the grid of a
gridlayout.

Is there a way to have a transparent overlay over the composite? Or can
I fill the background with a dynamically painted image?

Second question: I know, I can capture an image of an widget or
composite with gc#copyArea. Is it possible to do this without realy
displaying the widget to the user?
I would like to take a capture of a (hidden) composite, and use this as
background or overlay for an other really displayed second composite.

Thanks in advance!

Regards,
Lars
Re: overlay for shell/composite? [message #518715 is a reply to message #518224] Thu, 04 March 2010 19:30 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Lars,

There isn't a way to do a transparent overlay, but you can draw on the
Composite, either by adding a Paint listener, or by drawing to an Image and
setting it as the Composite's background (Control.setBackgroundImage(...)).
Capturing an image of an unrendered Control is not supported.

Grant


"Lars Fischer" <lfischer@fastmail.fm> wrote in message
news:hmlr30$s2c$1@build.eclipse.org...
> Hello,
>
> I would like to display some lines on a composite, depending on the
> structure of the used layoutmanager. E.g. lines around the grid of a
> gridlayout.
>
> Is there a way to have a transparent overlay over the composite? Or can
> I fill the background with a dynamically painted image?
>
> Second question: I know, I can capture an image of an widget or
> composite with gc#copyArea. Is it possible to do this without realy
> displaying the widget to the user?
> I would like to take a capture of a (hidden) composite, and use this as
> background or overlay for an other really displayed second composite.
>
> Thanks in advance!
>
> Regards,
> Lars
>
Previous Topic:Re: Need a multi-column list widget for SWT
Next Topic:ProgressRegion location
Goto Forum:
  


Current Time: Thu Dec 26 20:06:10 GMT 2024

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

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

Back to the top