[fpc-devel] csTransient in TComponentStyle
Martin
lazarus at mfriebe.de
Sat Nov 7 20:49:56 CET 2009
http://lazarus-ccr.sourceforge.net/docs/rtl/classes/tcomponentstyle.html
Doesn't really tell much about where it can or should be used....
From a bit of code research it appears, that the only effect ov
csTransient is to prevent a *reference* (by name) to this component from
being streamed.
This is where a component in a property, would be streamed in a
subComponent style
Button1: TButton
action: NamedAction
end
NamedAction: TAction
end
- if NamedAction was csTransient it would not be referenced in Button
(the property would be dropped instead)
- if NamedAction was csTransient it would still be streamed as a child
of it's owner (if the owner returns it in the list of it's children
(GetChildren)
Is that correct?
And can the 2nd part (streamed as Child) be trusted as future safe ?
Martin
More information about the fpc-devel
mailing list