🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by Patryk B. Mon, 15 Oct 2007 08:38
Window screenshot
#1233
Author: Patryk B.
Date: Mon, 15 Oct 2007 08:38
11 lines
1051 bytes
Hello,

It is possible to get screenshot of window that is minimalized?
I know that i can restore it, take screenshot and minimalize it again.
but want to get screenshot without user knowledge and without disturn his  
work.


Thanks,

Patryk.
Re: Window screenshot
#1235
Author: JF Jolin
Date: Mon, 15 Oct 2007 19:06
16 lines
1371 bytes
> It is possible to get screenshot of window that is minimalized?
> I know that i can restore it, take screenshot and minimalize it again.
> but want to get screenshot without user knowledge and without disturn his
> work.

There is a complete article on this subject at Code Project.

http://www.codeproject.com/useritems/CapturingMinimizedWindow.asp

But unfortunately it seems that the window have to be restored.



Cordialy
__
JF Jolin
Re: Window screenshot
#1238
Author: JD
Date: Tue, 16 Oct 2007 09:18
11 lines
989 bytes
"Patryk B." <pbobak@no.spam.o2.pl> wrote:
>
> It is possible to get screenshot of window that is
> minimalized?

If it's a TForm and your code, use TWinControl's PaintTo
method to cause the form to paint itself to a TBitmap's
Canvas.

~ JD
Re: Window screenshot
#1148
Author: Joe C. Hecht
Date: Wed, 17 Oct 2007 16:29
33 lines
2255 bytes
> It is possible to get screenshot of window that is minimalized?
> I know that i can restore it, take screenshot and minimalize it again.
> but want to get screenshot without user knowledge and without disturn his  work.

Is it a VCL form?

Note that using normal form painting operations to a bitmap may not work for all the
VCL controls. For example, the text in a combobox may not render correctly.

Our TExcellentFormPrinter product can do a very nice job of capturing a form
to a TBitmap , including the entire form (portions that are scrolled from view),
and forms that are shown off the screen.

If you are intrested in going this route, send me an email for a code example of printing
a form to a bitmap, as most of the print functions in the unit assume you are actually
printing to a real printer.

Anyway, to get this to work, simply show the form off the left side of the screen
(so the user does not see it), print it to a bitmap, then minimize it, and reset the
left property back to the way it was.

TExcellentFormPrinter can be found here:

http://www.code4sale.com/joehecht/index.htm


Joe
-- 
Delphi, graphics, and printing specialist available - $60/hr
http://www.code4sale.com/codeit/index.htm
Joe Hecht Associates
121 Louise Drive
Crestview, FL 32536
Re: Window screenshot
#1158
Author: JD
Date: Thu, 18 Oct 2007 17:08
9 lines
1047 bytes
"Joe C. Hecht" <joehecht@code4sale.com> wrote:
>

Been on vacation or working against a dead-line?

How was it?

~ JD
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads