|
Re: overlay for shell/composite? [message #518715 is a reply to message #518224] |
Thu, 04 March 2010 19:30 |
Grant Gayed 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02779 seconds