Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Component loading Posted by Chaitanya_Pune on 16 Oct 2006 at 3:43 AM
How components are loaded from a DFM file at runtime?

If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?

What is the difference between VCL and RTL? In which case RTL is used?

What is the significance of TPersistent?

Name of the class, which Does not has 'T' as a prefix.
Report
Re: Component loading Posted by zibadian on 16 Oct 2006 at 4:02 AM
: How components are loaded from a DFM file at runtime?
:
: If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?
:
: What is the difference between VCL and RTL? In which case RTL is used?
:
: What is the significance of TPersistent?
:
: Name of the class, which Does not has 'T' as a prefix.
:
Components are loaded as resources when the form.create() is called.
Component Properties: every component has a notification list, which is called if it is added or removed. See FreeNotification() method for more info.
VCL = Visual Component Library. I.e. all TComponent classes and its descendants
RTL = Runtime Library. I.e. all other routines and objects
The TPersistent (and its descendants) can be included in the DFM file.
Only the Exception (and its descendants) are not prefixed with a T, but with an E.
Report
Re: Component loading Posted by Chaitanya_Pune on 17 Oct 2006 at 4:21 AM
: : How components are loaded from a DFM file at runtime?
: :
: : If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?
: :
: : What is the difference between VCL and RTL? In which case RTL is used?
: :
: : What is the significance of TPersistent?
: :
: : Name of the class, which Does not has 'T' as a prefix.
: :
: Components are loaded as resources when the form.create() is called.
: Component Properties: every component has a notification list, which is called if it is added or removed. See FreeNotification() method for more info.
: VCL = Visual Component Library. I.e. all TComponent classes and its descendants
: RTL = Runtime Library. I.e. all other routines and objects
: The TPersistent (and its descendants) can be included in the DFM file.
: Only the Exception (and its descendants) are not prefixed with a T, but with an E.
:
------------------------------------------------------------------------
Thanks.
Can you clear following doubt?
If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?
Report
Re: Component loading Posted by zibadian on 17 Oct 2006 at 11:52 AM
: : : How components are loaded from a DFM file at runtime?
: : :
: : : If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?
: : :
: : : What is the difference between VCL and RTL? In which case RTL is used?
: : :
: : : What is the significance of TPersistent?
: : :
: : : Name of the class, which Does not has 'T' as a prefix.
: : :
: : Components are loaded as resources when the form.create() is called.
: : Component Properties: every component has a notification list, which is called if it is added or removed. See FreeNotification() method for more info.
: : VCL = Visual Component Library. I.e. all TComponent classes and its descendants
: : RTL = Runtime Library. I.e. all other routines and objects
: : The TPersistent (and its descendants) can be included in the DFM file.
: : Only the Exception (and its descendants) are not prefixed with a T, but with an E.
: :
: ------------------------------------------------------------------------
: Thanks.
: Can you clear following doubt?
: If a component has another component as a property (example: Datasource has a TDataset component as a property), what happens if the pointed to component is deleted?
:
The deleted component signals the refering component that it is being deleted. The refering component can then gracefully remove the property link, just before the deleted component is really destroyed.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.