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 

TPanel Canvas and TImage canvas

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Marco
Guest





PostPosted: Fri Jun 25, 2004 2:24 pm    Post subject: TPanel Canvas and TImage canvas Reply with quote




Hi everyone,
I've derived a class (MyPanel) from TPanel and i draw it with Canvas.
How can i send "MyPanel" Canvas To an TImage Canvas?

Thanks in advanced.

Marco
Back to top
Steve Aletto
Guest





PostPosted: Fri Jun 25, 2004 3:40 pm    Post subject: Re: TPanel Canvas and TImage canvas Reply with quote



Quote:
I've derived a class (MyPanel) from TPanel and i draw it with
Canvas.

How exactly? TPanel doesn't own a TCanvas property...

Quote:
How can i send "MyPanel" Canvas To an TImage Canvas?
Not very sure about what you're asking for, anyway you could try the

following:

YourImage->Canvas->CopyRect(YourPanel->ClientRect, YourCanvas,
YourPanel->ClientRect);

HTH,

Steve.



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jun 25, 2004 5:44 pm    Post subject: Re: TPanel Canvas and TImage canvas Reply with quote




"Steve Aletto" <steve_alettoANTI (AT) SPAMhotmail (DOT) com> wrote


Quote:
How exactly? TPanel doesn't own a TCanvas property...

You can use a TControlCanvas to draw onto any TControl derived component.


Gambit



Back to top
Marco
Guest





PostPosted: Mon Jun 28, 2004 6:51 am    Post subject: Re: TPanel Canvas and TImage canvas Reply with quote


Thanks Steve.

Marco
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.