Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » transparent Canvas on top of a Composite
transparent Canvas on top of a Composite [message #447309] Mon, 13 December 2004 15:54 Go to next message
Mani Ghamari is currently offline Mani GhamariFriend
Messages: 33
Registered: July 2009
Member
Hi,

Is it possible to have a transparent canvas on top of a Composite, like
TableCursor (which is on top of a Table)?
Using Canvas(Composite parent, int style) will add the canvas as a child to
the compiste and the canvas then has to obey the layout of the composite,
and will not be a transparent "layer" on top of the composite...

I was thinking about using GC.copyArea() to capture an image of the
underlying Composite, but I would have to dispose the composite, and add the
canvas in order to get the effect (so that the canvas SEEMS to be on top of
the composite), which makes it, in turn, impossible to captute its image

Any ideas?

thanks,

Mani
Re: transparent Canvas on top of a Composite [message #447376 is a reply to message #447309] Tue, 14 December 2004 00:24 Go to previous message
Mani Ghamari is currently offline Mani GhamariFriend
Messages: 33
Registered: July 2009
Member
Having a look at the TableCursor class, I answered my own question :)
TableCursor actually redraws the whole table from the scratch (i.e. is not
really a transparent layer!).

regards,

Mani

"Mani Ghamari" <mani.ghamari@linkast.com> wrote in message
news:cpkdut$p9a$1@www.eclipse.org...
> Hi,
>
> Is it possible to have a transparent canvas on top of a Composite, like
> TableCursor (which is on top of a Table)?
> Using Canvas(Composite parent, int style) will add the canvas as a child
> to the compiste and the canvas then has to obey the layout of the
> composite, and will not be a transparent "layer" on top of the
> composite...
>
> I was thinking about using GC.copyArea() to capture an image of the
> underlying Composite, but I would have to dispose the composite, and add
> the canvas in order to get the effect (so that the canvas SEEMS to be on
> top of the composite), which makes it, in turn, impossible to captute its
> image
>
> Any ideas?
>
> thanks,
>
> Mani
>
Previous Topic:Horizontal separators
Next Topic:FAQ Examples: Unable to load class org.eclipse.faq.examples.BooksView
Goto Forum:
  


Current Time: Wed Oct 28 05:34:02 GMT 2020

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

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

Back to the top