Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Off-screen Shell or Display?
Off-screen Shell or Display? [message #460617] Thu, 01 September 2005 15:21 Go to next message
Jonathan Edwards is currently offline Jonathan EdwardsFriend
Messages: 27
Registered: July 2009
Junior Member
Is there any way in SWT to create a Shell or Display that is off-screen,
so that standard SWT controls draw to memory instead of the screen? For
example to create thumbnails in a visual GUI builder.

Thanks,
Jonathan
Re: Off-screen Shell or Display? [message #460618 is a reply to message #460617] Thu, 01 September 2005 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Jonathan Edwards" <edwards@csail.mit.edu> wrote in message
news:df76ao$kk8$1@news.eclipse.org...
> Is there any way in SWT to create a Shell or Display that is off-screen,
> so that standard SWT controls draw to memory instead of the screen? For
> example to create thumbnails in a visual GUI builder.
>
No (and Yes).
You can create shells or controls off screen, but SWT does not support
drawing these widgets to an Image.
That being said, there are platform-specific solutions which are available.
Check the VE newsgroup.
---
Sunil
Re: Off-screen Shell or Display? [message #460625 is a reply to message #460618] Thu, 01 September 2005 19:28 Go to previous messageGo to next message
Randy Hudson is currently offline Randy HudsonFriend
Messages: 123
Registered: July 2009
Senior Member
> No (and Yes).
> You can create shells or controls off screen, but SWT does not support
> drawing these widgets to an Image.

Well, the API exists, but whether it actually works on all platforms and
when controls are clipped is another issue. I think the VE doesn't use any
tricks on win32.

> That being said, there are platform-specific solutions which are
> available. Check the VE newsgroup.
> ---
> Sunil
>
Re: Off-screen Shell or Display? [message #460627 is a reply to message #460625] Thu, 01 September 2005 20:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Randy Hudson" <none@us.ibm.com> wrote in message
news:df7ko6$8tl$1@news.eclipse.org...
>> No (and Yes).
>> You can create shells or controls off screen, but SWT does not support
>> drawing these widgets to an Image.
>
> Well, the API exists, but whether it actually works on all platforms and
> when controls are clipped is another issue. I think the VE doesn't use any
> tricks on win32.
>

VE uses SendMessage() with WM_PRINT on Windows.
VE uses native code on linux/GTK as well to do image capture.
---
Sunil

>> That being said, there are platform-specific solutions which are
>> available. Check the VE newsgroup.
>> ---
>> Sunil
>>
>
>
Re: Off-screen Shell or Display? [message #460658 is a reply to message #460627] Fri, 02 September 2005 16:08 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Further, there's no support (yet?) for Mac OS X, though they're looking into it.
Previous Topic:How to build a application with the layout like Eclipse?
Next Topic:How can I make "Image" manually transparent?
Goto Forum:
  


Current Time: Fri Apr 19 01:16:03 GMT 2024

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

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

Back to the top