Board index » cppbuilder » Save form to file Q?

Save form to file Q?


2003-09-06 08:42:23 PM
cppbuilder1
Hi,
Does anyone know an easy way to save the main form to a bitmap file or
metafile?
Thanks,
John
 
 

Re:Save form to file Q?

GetFormImage method of the form returns to you a Tbitmap of the form as you
see it on the screen.
make sure you free this bitmap when done.
John Hobbs wrote:
Quote
Hi,

Does anyone know an easy way to save the main form to a bitmap file or
metafile?

Thanks,

John
 

Re:Save form to file Q?

If you just want to get it for documentation, make the form the active
one, press <Ctrl>+PrtScr, then Paste it into what ever.
If you want to do this in code check out TCustomForm::GetFormImage() method.
Jeff
John Hobbs wrote:
Quote
Hi,

Does anyone know an easy way to save the main form to a bitmap file or
metafile?

Thanks,

John



 

{smallsort}

Re:Save form to file Q?

Thanks Jeff... GetFormImage worked great!
John
"dcent" < XXXX@XXXXX.COM >wrote in message
Quote
If you just want to get it for documentation, make the form the active
one, press <Ctrl>+PrtScr, then Paste it into what ever.

If you want to do this in code check out TCustomForm::GetFormImage()
method.

Jeff


John Hobbs wrote:
>Hi,
>
>Does anyone know an easy way to save the main form to a bitmap file
or
>metafile?
>
>Thanks,
>
>John
>
>
>

 

Re:Save form to file Q?

Good to hear.
Jeff
John Hobbs wrote:
Quote
Thanks Jeff... GetFormImage worked great!

John