[fpc-devel] documentation of csInline

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 7 11:25:58 CET 2009


On Sat, 07 Nov 2009 03:00:42 +0000
Martin <fpc at mfriebe.de> wrote:

> On 
> http://www.freepascal.org/docs-html/rtl/classes/tcomponent.componentstate.html
> 
> the following description is found
> > csInline The component is being loaded as part of a frame
> 
> Now looking at the code, I end up with the impression, that csInline
> is actually not refering to "part" of frame (which I read: component 
> owned/nested in a frame), but rather applies to the frame itself? (or 
> any component owning it's children.
> 
> Line in ReadCompnent:
>         if csInline in Result.ComponentState then
>           FLookupRoot := Result;
> 
> and other places too. A component that has csInline, becomes the root 
> for all nested components
> 
> Also "is being loaded". csInline is also used in Writer => so it does 
> not seem restricted to being loaded ?
> 
> Am I missing something essential, or is the documentation misleading?

Misleading.
csInline: the component is an embedded root component

In lazarus this is only for embedded frames.

Mattias



More information about the fpc-devel mailing list