Sign in Join

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

Mailing lists / fpc-devel / 2009-11

documentation of csInline

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Martin

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?

Martin

Reply by email

Mattias Gaertner
to Martin
Show quoted text 22 lines
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

Reply by email

Michael Van Canneyt
to Martin: On http://www.freepascal.org/docs-html/rtl/classes/tcomponent.componentstate.html the…
Martin wrote 22 lines
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?

The documentation is misleading, I will adapt it.

Michael.

Reply by email

Martin
to Mattias Gaertner: On Sat, 07 Nov 2009 03:00:42 +0000 Misleading. csInline: the component is an embedded…
Mattias Gaertner wrote 32 lines
On Sat, 07 Nov 2009 03:00:42 +0000 Martin 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

Ah, ok or more to the point (since the above could again be read for a label that is on a frame, where the fram itself is embedded):

"A RootComponent that is embedded in another RootComponent (e.g the instance of a frame on another form)"

Thanks

To the fpc team: Is it worth updating the docs?

Reply by email

Michael Van Canneyt
to Martin
Martin wrote 42 lines
Mattias Gaertner wrote: > On Sat, 07 Nov 2009 03:00:42 +0000 > Martin 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 > Ah, ok or more to the point (since the above could again be read for a label that is on a frame, where the fram itself is embedded): "A RootComponent that is embedded in another RootComponent (e.g the instance of a frame on another form)" Thanks To the fpc team: Is it worth updating the docs?

It always is. It'll be in time for the 2.4.0 release.

Michael.

Reply by email