transparent Canvas on top of a Composite [message #447309] |
Mon, 13 December 2004 15:54 |
Mani Ghamari 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 |
Mani Ghamari 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04148 seconds