| View previous topic :: View next topic |
| Author |
Message |
Cruxy Guest
|
Posted: Fri Aug 22, 2003 7:32 am Post subject: Re: How do i create Non Visual Components |
|
|
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
|
Posted: Fri Aug 22, 2003 11:59 am Post subject: Re: How do i create Non Visual Components |
|
|
| 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
|
Posted: Thu Aug 28, 2003 6:52 am Post subject: Re: How do i create Non Visual Components |
|
|
Hi!
Fully agreed.
regards
|
|
| Back to top |
|
 |
|