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 

TComponent painting

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
user@domain.invalid
Guest





PostPosted: Mon Oct 06, 2003 8:41 pm    Post subject: TComponent painting Reply with quote



Where's the code that draws the TComponent on the owner at design time?
i.e. the code that draws the speedbutton-looking component with the
component's palette glyph inside it.

Thanks,
Dv

Back to top
Yorai Aminov (TeamB)
Guest





PostPosted: Tue Oct 07, 2003 12:27 am    Post subject: Re: TComponent painting Reply with quote



On Mon, 06 Oct 2003 16:41:08 -0400, [email]user (AT) domain (DOT) inva[/email]lid wrote:

Quote:
Where's the code that draws the TComponent on the owner at design time?

In the designer. Non-visual components do not draw themselves - Delphi
does it for them.

---
Yorai Aminov (TeamB)
http://develop.shorterpath.com/yorai
(TeamB cannot answer questions received via email.)

Back to top
David Beardwood
Guest





PostPosted: Tue Oct 07, 2003 1:47 pm    Post subject: Re: TComponent painting Reply with quote





Quote:
Where's the code that draws the TComponent on the owner at design time?



In the designer. Non-visual components do not draw themselves - Delphi
does it for them.


"In the designer" as in not available to me (to be read visually)?


Thanks for the response.
Dv


Back to top
Yorai Aminov (TeamB)
Guest





PostPosted: Wed Oct 08, 2003 12:19 am    Post subject: Re: TComponent painting Reply with quote

On Tue, 07 Oct 2003 09:47:48 -0400, David Beardwood
<beardw (AT) mcmaster (DOT) ca> wrote:

Quote:
"In the designer" as in not available to me (to be read visually)?

Exactly. The component bitmaps are stored as resources in the
design-time package used to register them. They don't even exist in
the runtime package or application.

---
Yorai Aminov (TeamB)
http://develop.shorterpath.com/yorai
(TeamB cannot answer questions received via email.)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.