[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can an application take a snapshot of part of itself?

Posted on 2009-05-03
1
Medium Priority
?
234 Views
Last Modified: 2013-11-22
How do I cause an application form to take a screenshot of itself?  If I grab the desktop canvas area defined by the portion  of the form that I want to get an image of I only get the desktop <under> the form.  

The area of the form that I was to "screenshot" is layered of a Timage with some TPaintBox items on top of it.  Because its layout can be quite complicated, it seems that the simplest way would be just to "screenshot" the results.  

The puzzling thing is that at an earlier point in this coding I thought that taking a screenshot of the Desktop area defined by this combined image worked - but now I just get the desktop behind it

0
Comment
Question by:DMTrump
1 Comment
 

Accepted Solution

by:
DMTrump earned 0 total points
ID: 24292149
The answer to my problem is that I had inadvertently set the form's Transparent color property to TRUE.  I don't remember when or why that got set, but once I changed it back to the default False, then the form shows up in the Desktop Canvas and I can use ordinary an Screenshot routine of the Desktop to get the assembled image I wanted.  

So this also is a hint for those who might want to take a screenshot of the desktop but OMIT the applications form - just set the transparent color pro-erty to true.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question