Re: What is available to get an image from the clipboardinto VW??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboardinto VW??

Steven Kelly

That’s what RefreshingDisplayPolicy does. I think it’s in the public repository, and maybe even a new enough version to be useful :-/. We use it so that redisplay can happen during a long operation updating the underlying model of a window, without getting confused by trying to update while the model is in an inconsistent intermediate state.

 

Steve

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Dave Stevenson
Sent: Wednesday, June 16, 2010 8:36 PM
To: Claus Kick
Cc: vwnc >> "VWNC, "
Subject: Re: [vwnc] What is available to get an image from the clipboardinto VW??

 

I was thinking more of emulating it, not catching it. The idea was to include screen shots during a stack dump in a stripped image. What I was hoping for is a cached pixmap of the last full display of the window. However, if part of the window is obscured (by other windows, or even partially off screen), I'm now thinking that the window wouldn't have displayed itself fully anyway. For an unobscured window I can just do:

    aWindow asImage

 

I think that raising windows in order to capture them would likely be unsafe at dump time, since displaying those newly visible areas may cause more errors. But I could capture the unobscured parts with:

    [aWindow asImage] on: GraphicsContext incompleteAreaCopySignal do: #resume

 

I don't think that triggers any invalidation redisplay, so I think it should be safe.

 

Dave Stevenson
[hidden email]

 

 


From: Claus Kick <[hidden email]>
To: Dave Stevenson <[hidden email]>
Cc: "vwnc >> "VWNC, "" <[hidden email]>
Sent: Wed, June 16, 2010 12:13:19 PM
Subject: Re: [vwnc] What is available to get an image from the clipboard into VW??

Dave Stevenson schrieb:
> Hmm. How about getting the image of a window? Is there a way to simulate the alt+prtScrn action on Windows?
>  Dave Stevenson
> [hidden email]

Cant you just catch the keyboard input event which contains the code for alt+print?


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc