Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Screen capture how-to's
Screen capture how-to's [message #447908] Tue, 21 December 2004 18:51
Larry Bergman is currently offline Larry BergmanFriend
Messages: 3
Registered: July 2009
Junior Member
A while back, I posted a question about how to do screencaptures when
native OS components (such as FileDialogs and Menus) are being displayed.
The solution suggested was to use Display.asyncExec to schedule a screen
capture. I'm registering a callback with Display on SWT.Show events, and
using this approach. I've run into two problems with this.

1) This works great for ordinary menus. With popups, I get an image of a
blank grey rectangle for the menu, with no MenuItems rendered.

2) I can get a screen capture that contains a FileDialog (with contents
rendered), but can't figure out how to get the screen coordinates of the
dialog so that I can trim the image to just the dialog boundaries.

Can anyone help me with these? If there's a solution that requires
modifications to SWT source code, that's fine!

Thanks very much,
Larry Bergman
Previous Topic:FireWire wrapper for Mac/Windows
Next Topic:Detecting Combo Events
Goto Forum:
  


Current Time: Thu Oct 29 10:57:31 GMT 2020

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

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

Back to the top