Skip to main content



      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 10:54 Go to next message
Eclipse UserFriend
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] Mon, 13 December 2004 19:24 Go to previous message
Eclipse UserFriend
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 Jul 23 08:03:49 EDT 2025

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

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

Back to the top