Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » is it possible to create SWT controls offscreen and scrape their graphics?
is it possible to create SWT controls offscreen and scrape their graphics? [message #153315] Thu, 07 October 2004 16:05 Go to next message
Sean Neeley is currently offline Sean NeeleyFriend
Messages: 22
Registered: July 2009
Junior Member
How do you do it?

I'm designing a SWT user interface builder using GEF. My original
approach was to create the SWT control over the top of a lightweight
IFigure of the same size and position, scrape the graphics, then destroy
the SWT control, then paint the IFigure with the image of the SWT
control. The only problem is, if half of the SWT widget is offscreen
when I scrape the graphics, I end up with garbage on the half of the
image where the widget was offscreen. Is there a way to completely
create the SWT widget offscreen somewhere and then scrape the graphics?
I've seen several posts eluding to this, but I've been unable to
figure out how to do it.

Thank you.
- Sean
Re: is it possible to create SWT controls offscreen and scrape their graphics? [message #153331 is a reply to message #153315] Thu, 07 October 2004 18:39 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Try the eclipse.platform.swt and/or the eclipse.tools.ve newsgroups.

"Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
news:ck3p94$8v3$1@eclipse.org...
> How do you do it?
>
> I'm designing a SWT user interface builder using GEF. My original
> approach was to create the SWT control over the top of a lightweight
> IFigure of the same size and position, scrape the graphics, then destroy
> the SWT control, then paint the IFigure with the image of the SWT
> control. The only problem is, if half of the SWT widget is offscreen
> when I scrape the graphics, I end up with garbage on the half of the
> image where the widget was offscreen. Is there a way to completely
> create the SWT widget offscreen somewhere and then scrape the graphics?
> I've seen several posts eluding to this, but I've been unable to
> figure out how to do it.
>
> Thank you.
> - Sean
Re: is it possible to create SWT controls offscreen and scrape their graphics? [message #153354 is a reply to message #153315] Fri, 08 October 2004 15:26 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Why not reuse the VE? It includes an SWT builder using GEF, and it is
extensible AFAIK.

Offscreen scraping only works on some platforms. Others are optimized to
not paint widgets which cannot be seen.

"Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
news:ck3p94$8v3$1@eclipse.org...
> How do you do it?
>
> I'm designing a SWT user interface builder using GEF. My original
> approach was to create the SWT control over the top of a lightweight
> IFigure of the same size and position, scrape the graphics, then destroy
> the SWT control, then paint the IFigure with the image of the SWT
> control. The only problem is, if half of the SWT widget is offscreen
> when I scrape the graphics, I end up with garbage on the half of the
> image where the widget was offscreen. Is there a way to completely
> create the SWT widget offscreen somewhere and then scrape the graphics?
> I've seen several posts eluding to this, but I've been unable to
> figure out how to do it.
>
> Thank you.
> - Sean
Previous Topic:Newbie - Where do i start
Next Topic:Transparent, scalable figures
Goto Forum:
  


Current Time: Fri Apr 26 20:07:05 GMT 2024

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

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

Back to the top