Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-02

documentation TComponentState

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

Some TComponentState flags need documentation.
Here are some suggestions:

csAncestor:
The component has a design ancestor. For example a form TForm2 inherited from a form TForm1. TForm1 and all its components are copied to TForm2. TForm2 and all its inherited components have csAncestor. Only differences between TForm1 and TForm2 are stored in the stream of TForm2. The child components of a frame put onto a form have csAncestor too.

csInline:
The component is a nested top level component. For example a frame on a form. The children of the frame do not have csInline, unless they are other frames.

csDesignInstance:
The component is designed (csDesigning) and is a root component (Owner=nil).

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 21 lines
Hi, Some TComponentState flags need documentation. Here are some suggestions: csAncestor: The component has a design ancestor. For example a form TForm2 inherited from a form TForm1. TForm1 and all its components are copied to TForm2. TForm2 and all its inherited components have csAncestor. Only differences between TForm1 and TForm2 are stored in the stream of TForm2. The child components of a frame put onto a form have csAncestor too. csInline: The component is a nested top level component. For example a frame on a form. The children of the frame do not have csInline, unless they are other frames. csDesignInstance: The component is designed (csDesigning) and is a root component (Owner=nil).

Added, and explained the rest a bit more detailed as well.

Thanks.

Michael.

Reply by email