Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to draw access TForm Canvas when not visible?

Status
Not open for further replies.

chrisG2

Programmer
Aug 3, 2007
5
AU
I'm using Builder 6 and I need to render
the contents of a TForm to a back-buffer (TBitmap). This is so I can capture the contents of the form as an image for some transition effects.

If the form is visible on the screen then this is easy as I just have to copy to the form's Canvas.

However I need to capture the canvas of a form that is not visible. When I try accessing the Form's Canvas what I get is the area of the screen where the form would be if it were visible (ie. bits of the desktop background and other forms that are visible).

How can I draw to the form when it is NOT visible and capture and image of the form, without having to make it visible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top