Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ActiveX control behind GEF display?
ActiveX control behind GEF display? [message #180062] Tue, 03 May 2005 05:03 Go to next message
Eclipse UserFriend
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 #180092 is a reply to message #180062] Tue, 03 May 2005 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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 #180138 is a reply to message #180092] Tue, 03 May 2005 17:55 Go to previous messageGo to next message
Richard Rodseth is currently offline Richard RodsethFriend
Messages: 103
Registered: July 2009
Senior Member
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?

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?

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 #180189 is a reply to message #180138] Tue, 03 May 2005 19:58 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
"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 #180260 is a reply to message #180138] Tue, 03 May 2005 21:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> 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?

Well, SWT is the platform as far as GEF is concerned (and the support isn't
there). Even if windows or Mac supports the feature, SWT cannot expose it
because another platform does not have it and there is no way to fake it. I
think that Motif and GTK do not support it maybe. Shell's can be
non-rectangular.

> 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?

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.
Re: ActiveX control behind GEF display? [message #180267 is a reply to message #180260] Tue, 03 May 2005 21:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: basenamefor-news.yahoo.com

> 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.
Re: ActiveX control behind GEF display? [message #180275 is a reply to message #180267] Wed, 04 May 2005 02:31 Go to previous message
Eclipse UserFriend
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.
Previous Topic:HELP: java.lang.IllegalStateException: Workspace is closed.
Next Topic:Can i drag and drop without palette,I want to drag from tableviewer to editpartviewer
Goto Forum:
  


Current Time: Sun Feb 05 15:44:34 GMT 2023

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

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

Back to the top