ActiveX control behind GEF display? [message #180062] |
Tue, 03 May 2005 01:03  |
Eclipse User |
|
|
|
Originally posted by: basenamefor-news.yahoo.com
I'm building a GEF application, and using GEF for the interaction, but
providing WYSIWYG display by placing a Browser Control behind the GEF
EditPartViewer.
I've been working with the shapes demo (org.eclipse.gef.exampes.shapes)
trying to write an 'OverlayGraphicalViewer'. The idea is that I can place
SWT components so that they will display 'behind' the handles & hover
feedback drawn in its FigureCanvas.
So far, I've not been able to get the FigureCanvas to draw with a
transparent background.
Any ideas?
Thank You,
Tim
|
|
|
|
|
Re: ActiveX control behind GEF display? [message #180189 is a reply to message #180138] |
Tue, 03 May 2005 15:58   |
Eclipse User |
|
|
|
"Richard Rodseth" <rrodseth@mac.com> wrote in message
news:d7db704ae8ff68ab9149331bc0ac8e0c$1@www.eclipse.org...
> Randy
>
> Do you mean that GEF lives inside an SWT control, and that SWT controls
> can not be transparent, even if the platform API support is there?
No, SWT controls cannot be transparent. Period.
>
> Is there any other way (short of implementing full HTML rendering) that
> one could accomplish something like a "design tab" in an HTML editor,
> possibly using offscreen buffers?
You can use screen-scraping techniques. That is, render the HTML in an
off-screen browser, capture the window as an Image and use that as the
background image in the FigureCanvas. VEP does this for their GEF-based
Swing GUI builder.
>
> Tim, perhaps the SWT newsgroup would have some helpful suggestions.
>
> Thanks!
>
> - Richard
>
>
> Randy Hudson wrote:
>
> > It is not possible. Control's cannot be transparent.
>
> > "Timothy Kukulski" <basenamefor-news@yahoo.com> wrote in message
> > news:a010234008032e373bbae6967aec9e6d$1@www.eclipse.org...
> >> I'm building a GEF application, and using GEF for the interaction, but
> >> providing WYSIWYG display by placing a Browser Control behind the GEF
> >> EditPartViewer.
> >> I've been working with the shapes demo (org.eclipse.gef.exampes.shapes)
> >> trying to write an 'OverlayGraphicalViewer'. The idea is that I can
place
> >> SWT components so that they will display 'behind' the handles & hover
> >> feedback drawn in its FigureCanvas.
> >> So far, I've not been able to get the FigureCanvas to draw with a
> >> transparent background.
> >>
> >> Any ideas?
> >>
> >> Thank You,
> >>
> >> Tim
> >>
>
|
|
|
|
|
Re: ActiveX control behind GEF display? [message #180275 is a reply to message #180267] |
Tue, 03 May 2005 22:31  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
That's still a little vague. Are you doing text editing? Bridging is going
to be difficult.
"Timothy Kukulski" <basenamefor-news@yahoo.com> wrote in message
news:320753e6e5e871728c42025a3d063ffb$1@www.eclipse.org...
>> What are you trying to do? Display, or edit HTML? If you use offscreen
>> buffers, you can get a picture but you don't know what you're looking at
>> unless you have some additoinal API.
>
> I'm trying to edit content that is rendered by an ActiveX plugin. I will
> have a different channel for I/O with the plugin. The aggregate would then
> implement GraphicalViewer, having interrogated the rendered content for
> its bounding boxes, etc.
|
|
|
Powered by
FUDForum. Page generated in 0.09019 seconds