09-01-2010, 07:44 PM
إقتباس :فيما يخص هذه, TPersistent ما هو ال بيرسيستنت ؟ (موجود في كود الأخ محمد)مقتطف مترجم من كتاب فرنسي إلى الإنجليزية حول الفئة TPersistent
كود :
The branch TPersistent includes all VCL and CLX classes that derive from
TPersistent but not TComponent. The persistence determines what is
saved in a file card or a data module and which is responsible
in the form or data module when it is extracted from memory.
Because of their persistence, objects of that class may appear
design. They may however not exist independently.
Rather they implement properties for components. The properties are
only loaded and saved with a sheet if they have an owner.
The owner must be a component. TPersistent this method
GetOwner, which allows the designer to determine the card owner
Object.
The classes of this class are also the first to include a section
published in which the properties can be automatically loaded and saved. A method DefineProperties allows each class to indicate the
how to load and save properties.
Here are some other classes of TPersistent branch in the hierarchy:
• Graphics such as: TBrush, and TFont tpen.
• Classes such as TBitmap and Ticona, which store and display images
visual and TClipboard that contains text or graphics that have been
cut or copied from an application.
• The lists of channels like TStringList, which represents text or
lists of channels that can be used for design.
• Collections and collectors' items, which are derived from or TCollection
TCollectionItem. These classes manage collections of indexed items
specially set belonging to a component. Examples include
THeaderSections and THeaderSection or TListColumns and TListColumn.إقتباس :2. inherited ماتى تستخدم ولمآذا ؟تستخدم لوراثة الحدث الأصلي... راجع رد الأخ هانئ من هنا:
http://www.delphi4arab.net/forum/showthr...p?tid=2182
بالتوفيق أخي المبرمج.
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...

