BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form Capture

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder
View previous topic :: View next topic  
Author Message
virender
Guest





PostPosted: Mon Aug 28, 2006 3:06 pm    Post subject: Form Capture Reply with quote



Hi,
I am working on BCB6, I have implemented a function that will save
TForm as image and it works fine for saving TForm that is visible but
it is not able to capture the whole form image i.e. off screen portion
of the TForm.



Kindly see the attachment:

Form.jpg is my form I want whole form including the off-screen part but
I m getting only visible part see Image.jpg

The code that I am trying is :

Graphics::TBitmap *Bitmap = new Graphics::TBitmap();
TCustomTabControl *TabControl1 = new TCustomTabControl(this);

for(int i = 0 ; i < this->ControlCount; i++ )
{
if(this->Controls[i])
{
Bitmap->Width = Bitmap->Width + TabControl1->Width;
Bitmap->Height = Bitmap->Height + TabControl1->Height;
PaintTo(Bitmap->Canvas->Handle, 0, 0);
}
}



Waiting for your reply.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.