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 

Re: How do i create Non Visual Components

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





PostPosted: Fri Aug 22, 2003 7:32 am    Post subject: Re: How do i create Non Visual Components Reply with quote



Hi!

Quote:
I am using Delphi 7.0, i have been trying to create a non visual
component using an exisiting Class / file. I'm not usre how i do this
or what the difference is between a visual and non visual components.
Do i create them the same as viual components and then install the
component or do is there an easier way to create non visual components
on a form.

here's my opinion:
A visual component is something like a TEdit - The user sees it at runtime.
A non-visual component is everything only seen by the developer of a app
(derived from TComponent) like TClientSocket or TTimer.

regards


Back to top
Cruxy
Guest





PostPosted: Fri Aug 22, 2003 11:59 am    Post subject: Re: How do i create Non Visual Components Reply with quote



Quote:
Bu how do i actually create a non viusal componnent from something
like TTimer with its own Icon on the form.

1st you create a descendant of the object you want to inherit.(file - new -
Component).
Then you'd program that object. After all create a resource with an image
(24x24 px) named with the new created class name. Include the resource with
the {$R resourcefile} directive.

thats it!

regards

Back to top
Cruxy
Guest





PostPosted: Thu Aug 28, 2003 6:52 am    Post subject: Re: How do i create Non Visual Components Reply with quote



Hi!

Fully agreed.

regards
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.